joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450304
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x4867e3
call fcn.0045ae52
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call fcn.00452bdb
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.0040210e
push eax
lea ecx, [ebx + 0x10]
call fcn.004018d5
mov byte [ebp - 4], 1
call fcn.0040210e
push eax
lea ecx, [ebx + 0x14]
call fcn.004018d5
mov byte [ebp - 4], 2
call fcn.0040210e
push eax
lea ecx, [ebx + 0x18]
call fcn.004018d5
mov byte [ebp - 4], 3
call fcn.0040210e
push eax
lea ecx, [ebx + 0x1c]
call fcn.004018d5
push 0
mov byte [ebp - 4], 4
call fcn.0046b1e9
push eax
call fcn.0046faee
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0045c240
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00454176
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.0040156a
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.00401a02
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.00401e19
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x450406
push dword [ebp - 0x214]
call fcn.0045fb49
pop ecx
xor eax, eax
lea ecx, [ebx + 0x14]
inc eax
xor esi, esi
push 0x16
push 0x490fd0
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.00401e19
push 0x1b
push str.https:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00401e19
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00451287
push str.AppTest.txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.0040cefe
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.004021b2
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x218]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004021b2
test esi, esi
je 0x4504ab
push 0x15
push str.http:__soft.6789.net_
lea ecx, [ebx + 0x14]
call fcn.00401e19
push 0x1a
push str.http:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00401e19
xor edi, edi
lea esi, [ebx + 0x20]
push edi
push edi
push edi
push esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
call fcn.00406aee
add esp, 0x10
test eax, eax
jne 0x4504c8
mov dword [esi], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
mov dword [ebx + 0x44], edi
call fcn.0045adfc
ret
Function at 0x451101
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x4869fb
call fcn.0045ae1e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401b39
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451197
push eax
jmp 0x451186
call fcn.0040210e
push eax
lea ecx, [ebp - 0x14]
call fcn.004018d5
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c55d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040cdda
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451179
push esi
call fcn.0046b328
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.004021b2
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00409e00
mov edi, eax
cmp edi, 0xffffffff
jne 0x45112c
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004021b2
call fcn.0045ade7
ret

Function at 0x451f3c
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x486d5d
call fcn.0045ae1e
call fcn.0040210e
push eax
lea ecx, [ebp - 0x10]
call fcn.004018d5
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00401cb3
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca11
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x451fa1
mov ecx, dword [ebp + 8]
push 0x49c5d0
call fcn.00401b39
lea ecx, [esi - 0x10]
call fcn.004021b2
mov eax, dword [ebp + 8]
jmp 0x451ffa
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.0040c747
cmp ax, 0x5c
je 0x451fc0
push 1
push 0x49cd00
lea ecx, [ebp - 0x10]
call fcn.00401632
push 8
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.00401632
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x451fdf
push esi
call fcn.00451101
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.004012d8
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.004021b2
mov eax, esi
call fcn.0045ade7
ret
Function at 0x452e68
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x486f30
call fcn.0045ae1e
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x452f6c
call fcn.0040210e
push eax
lea ecx, [ebp + 0x10]
call fcn.004018d5
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.00401a02
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.00401e19
push 0x5c
push dword [ebp + 0x10]
call fcn.0045bd0e
pop ecx
pop ecx
test eax, eax
jne 0x452ecf
or eax, 0xffffffff
jmp 0x452ed4
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040c55d
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040cdda
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov esi, dword [ebp + 0x10]
push esi
call fcn.00451101
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452f1a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.00452c12
test eax, eax
js 0x452f51
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.00453857
test eax, eax
js 0x452f51
xor ebx, ebx
inc ebx
jmp 0x452f53
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x452f62
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004021b2
mov eax, ebx
call fcn.0045ade7
ret 0xc

Function at 0x452faa
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x486f53
call fcn.0045ae1e
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00451287
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040cefe
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.004021b2
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004021b2
mov eax, esi
call fcn.0045ade7
ret
Function at 0x453e6e
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.0045af30
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.0045c240
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0045c240
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.004541d3
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453efd
mov al, 1
jmp 0x454006
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0045c240
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0045c240
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0045c240
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x453f7f
mov bl, 2
jmp 0x453ffd
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00454015
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00454015
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453fc0
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00402adf
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453fe3
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00402adf
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret
Function at 0x454209
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x454286
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.0045fb3e
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x454286
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret

Function at 0x454387
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0045c240
add esp, 0xc
test esi, esi
je 0x454420
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x454420
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x454402
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0045c3a0
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x49151c
push eax
call fcn.004541ee
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x4543ce
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.00454433
jmp 0x454422
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret 0xc
Function at 0x454433
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x4545ea
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.00454303
mov cx, word [0x4aaf80]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x4aaf80], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.0045c240
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.004542b5
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4545ea
test ebx, ebx
jne 0x45450c
xor eax, eax
inc eax
jmp 0x4545ec
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0045c240
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x4545d4
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x4545d4
mov ecx, edi
call fcn.00454303
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x4545d1
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x4545d1
cmp byte [ebp + ecx - 0x104], 0
jne 0x4545d1
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x4545fd
lea esi, [edi + 4]
mov ecx, edi
call fcn.00454303
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x454525
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x454504
Function at 0x457c30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487378
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a8404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401b39
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x457dde
xor edi, edi
mov eax, dword [ebp - 0x10]
test edi, edi
js 0x457de1
cmp edi, dword [eax - 0xc]
jge 0x457de1
lea eax, [eax + edi*2]
push 0x5c
push eax
call fcn.0045bc47
mov edi, eax
add esp, 8
test edi, edi
je 0x457dde
mov eax, dword [ebp - 0x10]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x457de1
call fcn.0040210e
mov ecx, eax
test ecx, ecx
je 0x457e0f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
add edi, 1
mov ebx, 0
mov byte [ebp - 4], 1
cmovns ebx, edi
cmp ebx, dword [eax - 0xc]
jl 0x457d01
add eax, 0xfffffff0
push eax
call fcn.004012d8
add esp, 4
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x457d2d
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x457d11
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x457d1d
call fcn.0040210e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040c53e
mov eax, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
lea ebx, [eax - 0x10]
mov dword [ebp - 0x1c], edx
cmp ebx, edx
je 0x457d8a
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x457d7b
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x457d7b
push ebx
call fcn.004012d8
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x457d73
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x457d8a
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00401e19
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x457da3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x457db7
push esi
call fcn.0046b328
add esp, 4
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x457c80
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x457c80
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x457dfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004021d8
int3
Function at 0x458220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487478
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a8404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040210e
mov ecx, eax
test ecx, ecx
je 0x458366
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
mov dword [ebp - 4], 0
jge 0x45828a
push 0x200
lea ecx, [ebp - 0x10]
call fcn.00401c5e
mov esi, dword [ebp - 0x10]
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.0046165a
add esp, 8
test eax, eax
js 0x45835c
cmp eax, dword [esi - 8]
jg 0x45835c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
test ecx, ecx
jne 0x458305
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x49c5d0
call fcn.00401b39
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4582f2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 1]
test eax, eax
js 0x45835c
cmp eax, ecx
jg 0x45835c
cmp word [esi + eax*2], 0x5c
je 0x458324
push 0x49cd00
lea ecx, [ebp - 0x10]
call fcn.0040c726
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.0040c726
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x458343
push esi
call fcn.00457c30
add esp, 4
add esi, 0xfffffff0
push esi
call fcn.004012d8
mov edi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x4582d6
push 0x80070057
call fcn.004021d8
push 0x80004005
call fcn.004021d8
int3
Function at 0x458aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487508
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a8404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00457f10
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.0040cefe
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458b0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov edi, eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x458b32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4597a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
add eax, 0x7c
mov dword [ebp - 4], eax
push esi
test ebx, ebx
je 0x45983b
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x45983b
cmp eax, ecx
jbe 0x4597d5
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jb 0x459825
push edi
mov ecx, 0x20
mov esi, 0x4a8378
mov edi, ebx
add eax, 0xffffff80
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebx + 0x80]
push eax
call fcn.0045c3a0
add esp, 0xc
mov eax, 0x5a4d
pop edi
cmp word [ebx], ax
jne 0x459825
mov eax, dword [esi]
mov dword [ebx + 0x3c], eax
test eax, eax
js 0x459825
cmp eax, dword [ebp + 0xc]
jg 0x459825
cmp dword [eax + ebx], 0x4550
je 0x459838
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4774e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477368

Function at 0x47a77a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047a43a
Function at 0x4027b0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027be
call dword [0x4ca01c]
or eax, eax
je 0x4027bf
ret
mov al, 1
jmp fcn.0040283c

Function at 0x4027c8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027d6
call dword [0x4ca020]
or eax, eax
jne 0x4027d7
ret
mov al, 2
jmp fcn.0040283c

Function at 0x4027e0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402818
test edx, edx
je 0x402802
push eax
mov eax, ecx
call dword [0x4ca024]
pop ecx
or eax, eax
je 0x402811
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040283c
mov dword [eax], edx
mov eax, ecx
call dword [0x4ca020]
or eax, eax
jne 0x4027fb
ret
mov al, 1
jmp fcn.0040283c
test edx, edx
je 0x40282c
push eax
mov eax, edx
call dword [0x4ca01c]
pop ecx
or eax, eax
je 0x402811
mov dword [ecx], eax
ret

Function at 0x40283c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x4cd004]
test ecx, ecx
je 0x40284c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402865]
jns 0x402860
call fcn.00406b64
mov eax, dword [eax + 4]
jmp fcn.00403b88

Function at 0x402e18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402eb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e90
xor eax, eax
push ebp
push 0x402e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ecc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403130
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40314a
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x40314a
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x403136
mov al, 0xa
jmp fcn.0040283c
ret

Function at 0x40317c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4cd01c], 0
je 0x402a1b
call dword [0x4cd01c]
mov eax, 0xd2
jmp fcn.00403b88
push eax
push ecx
mov eax, dword [eax]
call fcn.0040314c
pop ecx
pop eax
je 0x40318b
jmp ebx
pop ecx
jmp 0x402a0c

Function at 0x403194
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.0040314c
mov eax, ebx
pop ebx
jne 0x4031a9
pop ecx
jmp 0x402a0c
ret