joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4091f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5a7c44]
push esi
push eax
push 0
push str.CreateFile
push 0x1f
call fcn.00407520
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push esi
call fcn.00421c30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40924f
mov ecx, dword [ebp - 0x234]
push esi
push eax
push ecx
mov ecx, dword [0x5a7c44]
push str.OpenZip
push 0x21
call fcn.00407520
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x230]
push edx
push 0xffffffffffffffff
push edi
call fcn.0041fef0
mov eax, dword [ebp - 0x230]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x234], eax
test eax, eax
jle 0x4092a9
lea eax, [ebp - 0x230]
push eax
push esi
push edi
call fcn.0041fef0
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x108]
push ecx
push 2
push edx
push ebx
push esi
push edi
call fcn.00421cb0
add esp, 0x24
test eax, eax
jne 0x4092c5
inc esi
cmp esi, dword [ebp - 0x234]
jl 0x409273
push edi
call fcn.00423fe0
add esp, 4
push edi
test al, al
je 0x409387
call fcn.00425d10
jmp 0x40938c
cmp eax, 0x200
jne 0x409324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xff
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00525ee0
mov ecx, dword [ebp - 0x128]
push ecx
push esi
push ebx
lea edx, [ebp - 0x104]
push str._s_index:_d_attr:_d_
push edx
call fcn.00525601
mov ecx, dword [ebp - 0x238]
add esp, 0x20
lea eax, [ebp - 0x104]
push eax
push ecx
push 0x200
jmp 0x40932d
mov edx, dword [ebp - 0x234]
push ebx
push edx
push eax
mov ecx, dword [0x5a7c44]
push str.UnzipItem
push 0x22
call fcn.00407520
push edi
call fcn.00423fe0
add esp, 4
push edi
test al, al
je 0x40936a
call fcn.00425d10
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 0xc
call fcn.00421d00
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 0xc
call fcn.00421d00
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00525092
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409440
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542e5b
mov eax, dword fs:[0]
push eax
mov eax, 0x30d74
call fcn.00525f60
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x556670
push str.stack.log
call fcn.005264ba
mov esi, eax
add esp, 8
test esi, esi
je 0x40966b
lea eax, [ebp - 0x30d80]
push eax
push 0x5546e0
push esi
mov dword [ebp - 0x30d80], 0xffffffff
call fcn.005273a7
push esi
call fcn.0052622a
push 0x556670
push 0x556654
call fcn.005264ba
add esp, 0x18
test eax, eax
je 0x40966b
push eax
call fcn.0052622a
push 0x556670
push 0x556644
call fcn.005264ba
add esp, 0xc
test eax, eax
je 0x40966b
push eax
call fcn.0052622a
push str.Send_Log_File
push edi
call fcn.004093b0
push 2
push 0
push str.crash.zip
call fcn.00424a60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40966b
push 2
push 0
push str.stack.log
push str.stack.log
push esi
call fcn.00425c70
add esp, 0x14
test eax, eax
je 0x409570
push esi
call fcn.00423fe0
add esp, 4
push esi
test al, al
je 0x409558
call fcn.00425d10
add esp, 4
push str.crash.zip
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40966b
call fcn.00421d00
add esp, 4
push str.crash.zip
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40966b
push 2
push 0
push 0x556654
push 0x556654
push esi
call fcn.00425c70
add esp, 0x14
test eax, eax
jne 0x409532
push 2
push eax
push 0x556644
push 0x556644
push esi
call fcn.00425c70
add esp, 0x14
push esi
test eax, eax
jne 0x409533
call fcn.00423fe0
add esp, 4
push esi
test al, al
je 0x4095ba
call fcn.00425d10
jmp 0x4095bf
call fcn.00421d00
add esp, 4
lea ecx, [ebp - 0x30d7c]
call fcn.00414330
lea ecx, [ebp - 0x30d7c]
mov dword [ebp - 4], 0
call fcn.004144f0
mov ecx, dword [ebp - 0x30d80]
push ecx
push 0x556624
lea ecx, [ebp - 0x30d7c]
call fcn.004147d0
push 1
push str.crash.zip
push str.crashfile
lea ecx, [ebp - 0x30d7c]
call fcn.004145e0
push 2
push str.nation
lea ecx, [ebp - 0x30d7c]
call fcn.004147d0
push str.MERONG_0.9__p_
push 3
push str.http:__103.117.148.67:81_Report_CrashReport.php
lea ecx, [ebp - 0x30d7c]
call fcn.004143a0
test eax, eax
je 0x409645
lea ecx, [ebp - 0x30d7c]
call fcn.00412df0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.stack.log
call esi
push str.crash.zip
call esi
lea ecx, [ebp - 0x30d7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00414360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret
Function at 0x40e2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40e2ce
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
call fcn.00526fd1
add esp, 0x10
mov eax, 1
pop ebp
ret 8

Function at 0x40e2f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x40e351
mov eax, dword [esi + 4]
test eax, eax
je 0x40e309
push eax
call fcn.00426031
add esp, 4
mov eax, dword [esi + 8]
push eax
call fcn.00426026
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x40e351
push ebx
xor ebx, ebx
push edi
mov edi, eax
cmp dword [esi + 8], ebx
jbe 0x40e348
mov ecx, dword [esi + 0xc]
push ecx
push 0x400
push 1
push edi
call fcn.0052764b
add esp, 0x10
test eax, eax
je 0x40e348
add ebx, eax
add edi, eax
cmp ebx, dword [esi + 8]
jb 0x40e327
pop edi
pop ebx
mov eax, 1
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x40f390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edx, edx
je 0x40f3c7
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
movzx ebx, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + ecx*4]
inc esi
dec edx
mov dword [edi], eax
jne 0x40f3a7
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f680
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push 8
push esi
mov ecx, edi
call fcn.0040f350
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0xedb88320
add ecx, ecx
xor eax, ecx
mov edx, eax
and edx, 0x80000000
neg edx
sbb edx, edx
and edx, 0xedb88320
add eax, eax
xor edx, eax
push 0x20
push edx
mov ecx, edi
call fcn.0040f350
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xff
jle 0x40f686
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f760
Capabilities:
Check if file exists
Create thread
Get file attributes
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f847
test al, 0x10
jne 0x40f847
push esi
push 0x118
call fcn.00425ff7
mov esi, eax
add esp, 4
test esi, esi
je 0x40f7a8
push 0x118
push 0
push esi
call fcn.00525ee0
add esp, 0xc
jmp 0x40f7aa
xor esi, esi
mov ecx, dword [ebp + 8]
push 0x104
push ecx
lea edx, [esi + 4]
push edx
mov dword [esi], edi
call fcn.00527c45
mov eax, dword [ebp + 0xc]
add esp, 0xc
push eax
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f801
push esi
call fcn.0040f3d0
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 4
push esi
push fcn.0040f3d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x40f834
push edi
mov dword [esi + 0x114], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00426031
add esp, 4
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4106d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.0042ebf2
push 0
push 0xd
push 0x1f
mov ecx, esi
mov dword [esi + 0xb8], eax
call fcn.0042ec26
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004316de
mov edi, eax
test edi, edi
jne 0x410738
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetStockObject]
push 0x11
call ebx
test eax, eax
jne 0x41072f
push 0xc
call ebx
test eax, eax
je 0x410737
push eax
call fcn.004316de
mov edi, eax
pop ebx
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x40]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x557084]
mov cx, word [0x557088]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x140]
mov dword [ebp - 0x40], eax
cdq
sub eax, edx
lea edx, [ebp - 0x40]
sar eax, 1
push edx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0x190
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esi + 0x138]
call fcn.004316f2
lea eax, [esi + 0x74]
push eax
mov ecx, esi
call fcn.0042b323
mov ecx, dword [esi + 0x20]
push 1
push ecx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00525092
mov esp, ebp
pop ebp
ret
Function at 0x4110c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543473
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5a674c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00430e2a
xor eax, eax
mov dword [edi], vtable.CMemoryDC.0
mov dword [ebp - 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
xor ecx, ecx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], eax
cmp dword [ebx + 0xc], eax
mov byte [ebp - 4], 1
sete cl
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x411142
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push esi
mov ecx, ebx
call eax
xor eax, eax
jmp 0x411158
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
cmp dword [edi + 0x30], eax
je 0x4111ea
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.0043141e
mov edx, dword [ebx + 8]
push 2
push esi
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [edi + 0x10]
call fcn.004316f2
lea eax, [edi + 0x10]
test eax, eax
je 0x4111aa
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00431783
mov dword [edi + 0x18], eax
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, edi
call fcn.00430bf4
mov eax, dword [ebx + 8]
push 2
push esi
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [edi + 0x24]
mov edx, dword [esi]
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00430fac
jmp 0x4111fc
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
push 1
mov ecx, edi
call fcn.00430af9
cmp dword [ebp + 0x10], 0
je 0x41123f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x1c]
sub eax, dword [esi + 4]
sub ecx, dword [esi]
mov ebx, dword [edi + 0x24]
mov esi, dword [esi]
test edx, edx
je 0x411225
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [edi + 4]
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x411252
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push esi
mov ecx, edi
call fcn.004415a9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412a90
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push 0
push 0x553feb
push 0x553feb
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x30d54], eax
test eax, eax
jne 0x412acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
xor eax, eax
pop esi
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push 0
push 0x4400000
push 3
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x30d58], eax
test eax, eax
jne 0x412b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
mov eax, dword [esi + 0x30d54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret 0x14
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x412b4e
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x30d58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esi + 0x30d60], eax
call edi
mov edx, dword [esi + 0x30d54]
push edx
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14
mov eax, 1
pop esi
pop ebp
ret 0x14

Function at 0x412c40
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x30d5c], 0
jne 0x412c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push ebx
call fcn.00525ee0
mov eax, dword [esi + 0x30d5c]
add esp, 0xc
push 0x5a8038
push edi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
pop edi
pop ebx
test eax, eax
je 0x412c4f
mov eax, dword [0x5a8038]
pop esi
pop ebp
ret 8

Function at 0x412eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 0x400
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412ec5
sub eax, edx
mov esi, eax
je 0x412eec
push 1
lea eax, [esi + edi]
push 0x5540dc
push eax
call fcn.00528d50
add esp, 0xc
test eax, eax
je 0x412eec
dec esi
jne 0x412ed2
lea ecx, [ebp + 8]
push ecx
push 1
push 0
add esi, edi
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x412f4f
lea edx, [ebp - 4]
push edx
push 0x5a8040
push eax
push eax
mov eax, dword [ebp + 8]
push str.Content_Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412f3a
push 0x18
push str.application_octet_stream
push 0x5a8040
call fcn.00527c45
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x5a8040
mov esp, ebp
pop ebp
ret 4
push 0x18
push str.application_octet_stream
push 0x5a8040
call fcn.00527c45
add esp, 0xc
mov eax, 0x5a8040
mov esp, ebp
pop ebp
ret 4
Function at 0x4138c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ecx + 4]
xor ebx, ebx
mov dword [ebp - 4], ecx
cmp edi, dword [ecx + 8]
jae 0x413932
push esi
mov eax, dword [edi + 0x10100]
dec eax
je 0x41391d
dec eax
jne 0x413923
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
lea eax, [edi + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413923
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea ebx, [ebx + eax + 0x1800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413923
add ebx, 0x2000
mov ecx, dword [ebp - 4]
add edi, 0x10104
cmp edi, dword [ecx + 8]
jb 0x4138d4
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413b30
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x408], 0x5573e0
mov byte [ebp - 0x404], 0
call fcn.00525ee0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
mov ecx, esi
call fcn.004137c0
mov eax, dword [esi + 0x30d58]
push 0
push 0x4400040
lea edx, [ebp - 0x408]
push edx
push 0x553feb
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x30d5c], eax
test eax, eax
jne 0x413bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x413bb9
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413c00
sub eax, edx
mov edx, dword [esi + 0x30d5c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0x31
push 0x55743c
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x413bb9
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
Function at 0x413f70
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
lea eax, [ebp - 0x408]
push eax
mov esi, ecx
mov dword [ebp - 0x410], 0x5573e0
mov dword [ebp - 0x408], 0
call fcn.00413c40
mov edx, dword [esi + 0x30d58]
push 0
push 0x4400040
lea ecx, [ebp - 0x410]
push ecx
push 0x553feb
push str.HTTP_1.0
push edi
push str.POST
push edx
mov ebx, eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x30d5c], eax
test eax, eax
jne 0x414008
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x30d60], eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
je 0x413fe7
mov eax, dword [esi + 0x30d5c]
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push eax
call edi
test eax, eax
je 0x413fe7
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.00525ee0
push ebx
lea edx, [ebp - 0x404]
push str.Content_Length:__d_r_n
push edx
call fcn.00525601
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x414070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414070
mov ecx, dword [esi + 0x30d5c]
push 0x10000000
sub eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call edi
test eax, eax
je 0x413fe7
xor eax, eax
xor edi, edi
push edi
push 8
push edi
mov dword [ebp - 0x434], eax
lea edx, [ebp - 0x438]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x30d5c]
push edx
push eax
mov dword [ebp - 0x438], 0x28
mov dword [ebp - 0x434], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x413fe7
mov edx, dword [ebp - 0x408]
mov eax, dword [esi + 0x30d5c]
lea ecx, [ebp - 0x40c]
push ecx
push ebx
push edx
push eax
mov dword [ebp - 0x40c], edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x413fe7
mov ecx, dword [esi + 0x30d5c]
push edi
push 8
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x413fe7
lea edx, [ebp - 0x408]
push edx
mov ecx, esi
call fcn.00412dd0
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
Function at 0x414930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi], eax
test eax, eax
jne 0x4149ad
mov edx, dword [ebp + 8]
push eax
push eax
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
jne 0x4149ad
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4149a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4149cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4