joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cc25
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41cc50
call fcn.00415a12
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x41cc73
push eax
push dword [esi + 4]
call fcn.0041cbab
push esi
push eax
mov ecx, 0x57de74
call fcn.0041c848
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41d55e
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x520570
call fcn.00505091
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d51e
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.0040e354
push eax
lea ecx, [esi + 0x18]
call fcn.00407950
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040b650
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x41d5d5
push eax
push dword [esi + 8]
call fcn.0041cbab
push dword [esi + 0xc]
mov ecx, 0x57de74
push eax
call fcn.0041c848
mov eax, esi
call fcn.00505169
ret 0x18

Function at 0x41fe3a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57a898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41fe6f
xor eax, eax
jmp 0x41fec2
lea eax, [ebp - 0x210]
push eax
call fcn.00504b62
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41fea0
push 0x55a9dc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050629a
add esp, 0xc
test eax, eax
jne 0x41fe6b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050629a
add esp, 0xc
test eax, eax
jne 0x41fe6b
lea eax, [ebp - 0x210]
push eax
call fcn.0040f6fb
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00502eb5
leave
ret

Function at 0x43b7bf
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043b463
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43b809
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ec04
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d780
jmp 0x43b814
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00421abc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43b81a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041c0cb
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43b857
call fcn.0043b463
mov dword [esi + 0xc], 1
jmp 0x43b85c
call fcn.0043b463
cmp dword [esi], 0
je 0x43b8a5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x43b87d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ec04
jmp 0x43b88f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004078f0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d780
jmp 0x43b8c9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43b8c9
push dword [esi]
push dword [ebp + 8]
call fcn.00421abc
pop esi
pop ebp
ret 0xc

Function at 0x46f5ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46f5e8
call fcn.00415a12
mov esi, dword [eax + 0xc]
push dword [0x57fc44]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46f606
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46f5fe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46f633
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46f600
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046f4fc
mov esi, eax
jmp 0x46f625
Function at 0x4e99cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e99e4
mov edi, dword [esi + 0xc]
jmp 0x4e9a24
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e99fd
call fcn.00411fce
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e9a12
call fcn.00411fce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e9a24
call fcn.00411fce
call fcn.00415a12
cmp dword [eax + 0x3c], 0
je 0x4e9a39
push edi
mov ecx, ebx
call fcn.004e8888
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e98e6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e9a57
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e9a63
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x502eb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57a898]
jne 0x502ebf
repz ret
jmp fcn.0050b663
Function at 0x401620
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x84
mov ebx, dword [esp + 0x90]
mov dword [esp], 0x493e0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], 0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x78], str.CodeBlocksWindowsApp
mov dword [esp + 0x58], 0x4013f0
mov dword [esp + 0x54], 8
mov dword [esp + 0x50], 0x30
call sub.GDI32.dll_CreateSolidBrush
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sub.USER32.dll_LoadIconA
sub esp, 8
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [esp + 0x68], eax
call sub.USER32.dll_LoadIconA
sub esp, 8
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [esp + 0x7c], eax
call sub.USER32.dll_LoadCursorA
sub esp, 8
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x74], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp], eax
mov dword [esp + 0x70], esi
call sub.USER32.dll_RegisterClassExA
xor edx, edx
sub esp, 4
test ax, ax
jne 0x401703
add esp, 0x84
mov eax, edx
pop ebx
pop esi
ret 0x10
mov dword [esp + 8], 0x40005
mov dword [esp + 4], 0
mov dword [esp], 0x404024
call sub.WINMM.DLL_PlaySoundA
sub esp, 0xc
mov dword [esp], 0
call sub.USER32.dll_GetSystemMetrics
sub esp, 4
mov dword [0x406008], eax
mov dword [esp], 1
call sub.USER32.dll_GetSystemMetrics
sub esp, 4
mov dword [0x40600c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x406008]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x90000008
mov dword [esp + 8], 0x404024
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov ebx, eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.USER32.dll_SetWindowPos
sub esp, 0x1c
mov eax, dword [esp + 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], 0x4013b0
mov dword [esp + 8], 0x320
mov dword [esp + 4], 0
call sub.USER32.dll_SetTimer
sub esp, 0x10
lea ebx, [esp + 0x34]
jmp 0x401846
mov dword [esp], ebx
call sub.USER32.dll_TranslateMessage
sub esp, 4
mov dword [esp], ebx
call sub.USER32.dll_DispatchMessageA
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jne 0x401830
mov edx, dword [esp + 0x3c]
add esp, 0x84
pop ebx
pop esi
mov eax, edx
ret 0x10
Function at 0x401b50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401ca6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401c20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401bf5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401c05
cmp byte [esp + 0x1e], 0
je 0x401c05
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401c05
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401b50
nop

Function at 0x401f40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x406044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40605c]
sub esp, 4
test ebx, ebx
je 0x401f8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401f84
test esi, esi
je 0x401f84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f60
mov dword [esp], 0x406044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x402210
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00401f20
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x402246
jmp 0x402285
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x402243
cmp al, 0x20
je 0x402243
cmp al, 0x22
jne 0x402269
jmp 0x4022d4
cmp al, 0x20
lea esi, [esi]
je 0x402270
test al, al
je 0x402285
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x402257
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x4022ea
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x402277
cmp al, 0x20
je 0x402277
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x402294
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401620
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x4022de
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x4022d0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x402270
cmp al, 9
je 0x402277
jmp 0x402285
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREFinjanSurfinShieldinstallinstall1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40102e
xor al, al
jmp 0x401115
push esi
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and byte [ebp - 1], 0
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Directory
mov dword [ebp - 8], 0x104
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x401107
push str._bin
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x114]
push str.winsfcm.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x20
test eax, eax
jne 0x401107
and byte [ebp - 1], al
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.VersionL
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x401107
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [ebp + 8]
push eax
call ebx
cmp eax, edi
pop ecx
jg 0x401103
jne 0x401107
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.VersionR
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x401107
lea eax, [ebp + 8]
push eax
call ebx
cmp eax, 5
pop ecx
jl 0x401107
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401118
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x40
push dword [esp + 0xc]
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp word [esi], 0x5a4d
je 0x401137
xor al, al
pop esi
ret
mov eax, dword [esi + 0x3c]
mov esi, dword [esp + 0x10]
add eax, dword [esp + 8]
push 0xf8
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi], 0x4550
sete al
pop esi
ret

Function at 0x40115c
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x4011b4
mov edi, 0x5a4d
cmp word [esi], di
jne 0x4011b4
lea eax, [esi + 0x18]
push 0x403080
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x401188
mov eax, edi
jmp 0x4011b6
mov ecx, dword [esi + 0x3c]
add ecx, esi
je 0x4011b4
movzx eax, word [ecx]
cmp eax, 0x454e
je 0x4011b6
cmp eax, 0x454c
je 0x4011b6
xor eax, eax
cmp dword [ecx], 0x4550
setne al
dec eax
and ax, 0xeb03
add eax, edi
jmp 0x4011b6
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4011bb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
xor esi, esi
lea eax, [ebp - 0x8c]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x401243
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x40123a
push ebx
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x401230
push ebx
call fcn.0040115c
sub eax, 0x454c
je 0x401226
dec eax
dec eax
je 0x401226
dec eax
dec eax
je 0x401222
sub eax, 0x14fd
jmp 0x401229
push 2
jmp 0x401228
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, esi
pop esi
leave
ret
Function at 0x401342
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x187e8
call fcn.00401800
push edi
push 0x403010
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jne 0x401371
or eax, 0xffffffff
jmp 0x4014d3
push ebx
push esi
push eax
push 0x186a0
lea eax, [ebp - 0x187e8]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x187e8]
push eax
call fcn.00401118
add esp, 0x1c
test al, al
jne 0x4013b0
or edi, 0xffffffff
jmp 0x4014c5
mov ebx, dword [ebp - 0xf8]
cmp ebx, esi
jae 0x4013a8
sub esi, ebx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll_malloc]
lea ecx, [ebp + ebx - 0x187e8]
push esi
push ecx
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push dword [ebp + 0x10]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
push 0x403098
push dword [ebp + 0x10]
call esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x401455
push dword [ebp + 0x10]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 0xc]
push edi
push 0x403098
push dword [ebp + 0x10]
call esi
push edi
push 2
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4013a8
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], edi
jbe 0x4014b9
push dword [ebp - 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, 0x186a0
lea eax, [ebp - 0x187e8]
push ebx
push 1
push eax
call esi
add esp, 0x10
cmp eax, edi
jle 0x4014bc
lea ecx, [ebp - 4]
push edi
push ecx
push eax
lea eax, [ebp - 0x187e8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], edi
jbe 0x4014b9
push dword [ebp - 8]
lea eax, [ebp - 0x187e8]
push ebx
push 1
push eax
jmp 0x401486
or edi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x4022e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5973cc]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call fcn.00506190
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40232c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40232e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005060ef
add esp, 0x118
ret

Function at 0x4044f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x553eeb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5973cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005046e6
push 4
mov dword [esp + 0x24], 0
call fcn.00506654
mov edi, eax
add esp, 4
test edi, edi
je 0x404572
call fcn.00504a31
mov dword [edi], eax
call fcn.0050485f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00504783
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404567
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.005047ab
jmp 0x404574
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x406130
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x554d58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5973cc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004057f0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406190
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00406ae0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004057f0
cmp dword [esp + 0x28], 8
jb 0x4061dd
mov eax, dword [esp + 0x14]
push eax
call fcn.00505cfe
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x407130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407149
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407184
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407180
lea ebx, [ebx]
cmp esi, eax
jae 0x407184
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407170
cmp esi, eax
jb 0x40718a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407360
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
pop ecx
ret