joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd00
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push 0
call esi
push 0
mov edi, eax
call esi
mov ecx, dword [esp + 0x30]
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x18
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
push 0
mov ebp, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edi
call ebx
push ebp
push esi
mov dword [esp + 0x38], eax
call ebx
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push edi
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x30]
push ecx
push edi
call ebx
mov edx, dword [esp + 0x10]
push edx
push esi
call ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
push esi
call ebx
test esi, esi
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x40fdd1
push esi
call ebx
test edi, edi
je 0x40fdd8
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x410830
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea edi, [esi + 0x454]
push edi
push eax
push ecx
mov ecx, esi
call fcn.00410710
test al, al
jne 0x410855
pop edi
pop esi
ret 8
mov edx, dword [esi + 4]
push 0x3fa
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
push eax
push 0
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x105
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
mov al, 1
pop esi
ret 8

Function at 0x410ea0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x10]
lea esi, [eax + 1]
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x410ed3
push esi
mov ecx, ebx
call fcn.00403420
mov eax, dword [ebx]
push esi
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
mov ecx, eax
jne 0x410eff
mov ecx, dword [ebx]
test ecx, ecx
je 0x410f03
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410ef0
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x410f1b
mov edx, dword [ebx]
cmp ecx, dword [edx - 8]
jg 0x410f1b
pop edi
mov dword [edx - 0xc], ecx
mov edx, dword [ebx]
pop esi
mov word [edx + ecx*2], 0
pop ebx
ret 4
push 0x80070057
call fcn.00402c00
int3
Function at 0x412c30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x46]
push esi
push eax
mov word [esp + 0x4c], si
call fcn.004192c0
add esp, 0xc
push 0x20a
lea ecx, [esp + 0x44]
push ecx
mov edi, 7
push esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x412c90
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x2c]
call fcn.004022d0
push 1
push 0xffffffffffffffff
push 0x42c5a4
lea ecx, [esp + 0x30]
call fcn.00401c70
add eax, 1
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.004020e0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.004020e0
mov edi, 8
cmp dword [esp + 0x20], edi
jb 0x412d09
mov edx, dword [esp + 0xc]
push edx
call fcn.00418bdb
add esp, 4
push 0xb
push str.updater.exe
lea ecx, [esp + 0x2c]
call fcn.004021d0
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x28]
jae 0x412d27
lea eax, [esp + 0x28]
push esi
push esi
push esi
push eax
push 0x42c5a8
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x3c], edi
pop edi
pop esi
jb 0x412d4c
mov eax, dword [esp + 0x20]
push eax
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004192a2
add esp, 0x248
ret

Function at 0x412e60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
mov esi, dword [esp + 0x210]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push edi
push 0x42d994
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x1fe
lea ecx, [esp + 0x12]
push edi
push ecx
mov word [esp + 0x18], di
call fcn.004192c0
mov eax, dword [esp + 0x14]
push 0x10
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041b6b2
lea eax, [esp + 0x24]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
add esp, 0x18
mov word [esi + 4], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412ed7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004022d0
mov ecx, dword [esp + 0x20c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004192a2
add esp, 0x208
ret 4
Function at 0x414320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x58]
lea eax, [esi + 1]
push edi
push eax
call fcn.0041809a
push esi
mov edi, eax
push ebx
push edi
mov dword [esp + 0x20], edi
call fcn.0041b2d0
mov byte [esi + edi], 0
add esp, 0x10
xor esi, esi
mov eax, edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414374
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00410cb0
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x414399
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x74]
push ecx
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.0040ebb0
mov ebx, eax
test ebx, ebx
mov eax, dword [esp + 0x74]
jne 0x4143c0
cmp eax, 0xffffffff
mov esi, eax
je 0x4144e2
mov edi, edi
cmp ebx, 0xffffffff
je 0x4144e2
cmp dword [esp + 0x78], 0x10
mov ecx, dword [esp + 0x64]
jae 0x4143d8
lea ecx, [esp + 0x64]
push eax
push esi
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040ebb0
mov ebx, eax
cmp ebx, 0xffffffff
mov eax, dword [esp + 0x74]
je 0x414477
lea edx, [eax + esi - 1]
cmp edx, dword [esp + 0x44]
jae 0x414469
mov eax, ebx
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00410b20
mov esi, dword [ebp + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
push esi
mov ecx, ebp
call fcn.004130c0
push 1
mov ecx, ebp
mov edi, eax
call fcn.004118d0
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov dword [ecx], edi
cmp dword [esp + 0x2c], 0x10
jb 0x414461
mov edx, dword [esp + 0x18]
push edx
call fcn.00418bdb
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
lea esi, [eax + ebx]
cmp esi, 0xffffffff
jne 0x4143c0
jmp 0x4144e2
lea ecx, [eax + esi - 1]
cmp ecx, dword [esp + 0x44]
jae 0x4144e2
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00410b20
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.004130c0
push 1
mov ecx, ebp
mov ebx, eax
call fcn.004118d0
mov dword [esi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
cmp dword [esp + 0x2c], 0x10
jb 0x4144e2
mov eax, dword [esp + 0x18]
push eax
call fcn.00418bdb
add esp, 4
push edi
call fcn.00418be0
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x48], esi
jb 0x414503
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00418bdb
add esp, 4
cmp dword [esp + 0x78], esi
pop edi
pop esi
pop ebp
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
pop ebx
jb 0x41452f
mov edx, dword [esp + 0x54]
push edx
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004192a2
add esp, 0x40
ret
Function at 0x4164df
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x3c
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x424]
mov edx, dword [esi + 0x41c]
push edi
lea eax, [esi + 0x450]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00410710
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x416520
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004022d0
push 0xa
push ebx
push str._autostart
lea ecx, [esp + 0x34]
call fcn.00402fc0
cmp eax, 0xffffffff
je 0x416557
mov ecx, esi
call fcn.00415510
push str.http:__m.alisoft.com_portal_fi_client_images_banner.jpg
mov ecx, esi
call fcn.00412270
mov eax, dword [esi + 0x430]
mov ecx, dword [esi + 0x428]
push eax
push ecx
mov ecx, esi
call fcn.00410830
test byte [0x4375d4], 1
jne 0x41659f
or dword [0x4375d4], 1
mov ecx, 0x4375b8
call fcn.00402ba0
push 0x42b650
call fcn.0041970b
add esp, 4
mov ecx, 0x4375b8
call fcn.00401d30
test al, al
mov edi, 8
je 0x416623
push 0x22
push str.alisoft_kplan_client_install_V1003
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
call fcn.004022d0
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00412360
cmp dword [esp + 0x24], edi
jb 0x4165f2
mov eax, dword [esp + 0x10]
push eax
call fcn.00418bdb
add esp, 4
test byte [0x4375d4], 1
jne 0x416619
or dword [0x4375d4], 1
mov ecx, 0x4375b8
call fcn.00402ba0
push 0x42b650
call fcn.0041970b
add esp, 4
mov ecx, 0x4375b8
call fcn.00401d60
cmp dword [esp + 0x40], edi
pop edi
pop esi
pop ebx
jb 0x416639
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x38]
xor ecx, esp
mov al, 1
call fcn.004192a2
add esp, 0x3c
ret
Function at 0x416655
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, eax
sar eax, 0x10
and ecx, 0xffff
push eax
push ecx
mov ecx, esi
call fcn.0040e010
mov ebx, eax
cmp ebx, 7
ja case.0x416677.1
jmp dword [ebx*4 + 0x416754]
cmp dword [esi + 0x46c], 1
jne case.0x416677.1
push 1
mov ecx, esi
call fcn.0040e1c0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x416677.1
cmp dword [esi + 0x46c], 1
jne case.0x416677.1
push 1
mov ecx, esi
call fcn.0040e390
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
mov ecx, esi
call fcn.00415d70
jmp case.0x416677.1
cmp dword [esi + 0x46c], 1
jne case.0x416677.1
push 1
mov ecx, esi
call fcn.0040e2a0
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x416677.1
cmp dword [esi + 0x46c], 1
jne case.0x416677.1
mov eax, dword [esi + 4]
push edi
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push pe_nt_image_headers32
mov ecx, eax
push ecx
mov dword [esi + 0x3f8], eax
call edi
mov edx, dword [esi + 0x3f8]
neg eax
sbb eax, eax
push 0
add eax, 1
push eax
push 0xf1
push edx
call edi
pop edi
mov dword [esi + 0x468], ebx
mov dword [esi + 0x46c], 0
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x417220
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x818
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push 0
push 0
mov esi, ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x838]
push 0
push 0
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call edi
test eax, eax
jne 0x4172c8
mov ebp, dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x41736b
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push edx
mov dword [esp + 0x30], 4
call ebp
mov ecx, dword [esi + 8]
or dword [esp + 0x10], 0x3380
push 4
lea eax, [esp + 0x14]
push eax
push 0x1f
push ecx
call ebx
mov edx, dword [esi + 8]
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
je 0x417274
push 0x7ff
xor edi, edi
lea eax, [esp + 0x29]
push edi
push eax
mov byte [esp + 0x30], 0
call fcn.004192c0
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x800
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x24], edi
call ebx
test eax, eax
je 0x417348
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417348
mov ecx, dword [esp + 0x18]
lea ebp, [edi + eax]
cmp ebp, dword [ecx]
ja 0x417348
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
add eax, edi
push eax
call fcn.0041b2d0
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x800
lea edx, [esp + 0x2c]
push edx
push eax
mov edi, ebp
call ebx
test eax, eax
jne 0x417305
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
mov al, 1
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004192a2
add esp, 0x818
ret 8
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call edi
mov edx, dword [esi]
push edx
call edi
xor al, al
jmp 0x417350
Function at 0x417430
Capabilities:
Connect to http server
Create http request

Disassembly:
sub esp, 0x20
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
push 0
push 0
push 0
push 1
push str.DownFile
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi], eax
jne 0x41747a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004192a2
add esp, 0x20
ret 0x10
cmp dword [edi + 0x18], 8
jb 0x417485
mov edi, dword [edi + 4]
jmp 0x417488
add edi, 4
push ebx
mov ebx, dword [esp + 0x3c]
push 0
push 0
push 3
push 0x42c550
push 0x42c550
push ebx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4174cd
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004192a2
add esp, 0x20
ret 0x10
xor ecx, ecx
cmp ebx, 0x1bb
setne cl
mov eax, str.POST
sub ecx, 1
and ecx, 0x803000
cmp byte [esp + 0x40], 0
mov edi, ecx
jne 0x4174f4
mov eax, 0x42e020
push eax
lea ecx, [esp + 0x14]
call fcn.004023b0
mov ebx, 8
cmp dword [ebp + 0x18], ebx
jb 0x41750d
mov eax, dword [ebp + 4]
jmp 0x417510
lea eax, [ebp + 4]
cmp dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x14]
jae 0x41751e
lea ecx, [esp + 0x14]
mov edx, dword [esi + 4]
push 0
or edi, 0x84400100
push edi
push 0
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 8], eax
jne 0x41757b
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
mov ecx, dword [esi]
push ecx
call edi
cmp dword [esp + 0x28], ebx
jb 0x417564
mov edx, dword [esp + 0x14]
push edx
call fcn.00418bdb
add esp, 4
pop ebx
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004192a2
add esp, 0x20
ret 0x10
cmp dword [esp + 0x28], ebx
jb 0x41758e
mov eax, dword [esp + 0x14]
push eax
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004192a2
add esp, 0x20
ret 0x10
Function at 0x417a59
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x436260]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00417998
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004192c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x417aa8
cmp dword [ebp - 0x1c], 5
jb 0x417ac0
jmp 0x417abc
cmp dword [ebp - 0x10], 1
jne 0x417ac0
cmp dword [ebp - 0x1c], 4
ja 0x417abc
jne 0x417ac0
cmp dword [ebp - 0x18], 0
jbe 0x417ac0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42e130
call fcn.004046d0
test eax, eax
jge 0x417ae1
mov byte [0x437530], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004192a2
add ebp, 0x78
leave
ret

Function at 0x417c93
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x437670], 0
push esi
jne 0x417c06
call fcn.00417b31
test eax, eax
je 0x417c49
mov eax, dword [0x437670]
cmp eax, 1
jne 0x417c27
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x417c49
pop esi
ret
push eax
call dword [0x437678]
test eax, eax
jne 0x417c91
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 0x417c4d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x437670]
call dword [0x437678]
mov edi, eax
test edi, edi
je 0x417c74
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x417c90
lea edi, [esi + 0xff0]
push esi
push dword [0x437670]
call dword [0x437674]
add esi, 0x10
cmp esi, edi
jb 0x417c7a
mov eax, esi
pop edi
pop esi
ret
jmp 0x417bf3

Function at 0x4192a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436260]
jne 0x4192ac
repz ret
jmp fcn.0041e7cc
Function at 0x4204bb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x436b90]
je 0x4204d6
inc edi
cmp edi, 0x17
jb 0x4204c7
cmp edi, 0x17
jae 0x420656
push ebp
push 3
call fcn.00425d3e
cmp eax, 1
pop ecx
je 0x420622
push 3
call fcn.00425d3e
test eax, eax
pop ecx
jne 0x42050a
cmp dword [0x436280], 1
je 0x420622
cmp ebx, 0xfc
je 0x420655
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x437e48
push ebp
call fcn.0041dc98
add esp, 0xc
test eax, eax
je 0x420540
push esi
push esi
push esi
push esi
push esi
call fcn.0041b19b
add esp, 0x14
push 0x104
mov esi, 0x437e61
push esi
push 0
mov byte [0x437f65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420584
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041dc98
add esp, 0xc
test eax, eax
je 0x420584
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b19b
add esp, 0x14
push esi
call fcn.0041bb50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4205c9
push esi
call fcn.0041bb50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43815c
push 0x42f1c4
sub ecx, eax
push ecx
push eax
call fcn.004217c6
add esp, 0x14
test eax, eax
je 0x4205c9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041b19b
add esp, 0x14
jmp 0x4205cb
xor esi, esi
push 0x42f1c0
push ebx
push ebp
call fcn.00421704
add esp, 0xc
test eax, eax
je 0x4205eb
push esi
push esi
push esi
push esi
push esi
call fcn.0041b19b
add esp, 0x14
push dword [edi*8 + 0x436b94]
push ebx
push ebp
call fcn.00421704
add esp, 0xc
test eax, eax
je 0x42060d
push esi
push esi
push esi
push esi
push esi
call fcn.0041b19b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00425b81
add esp, 0xc
jmp 0x420655
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x420655
cmp ebp, 0xffffffff
je 0x420655
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x436b94]
push dword [esi]
call fcn.0041bb50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x425b81
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041e16b
xor ebx, ebx
cmp dword [0x4383dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x425c57
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x425d37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x425d37
push eax
call fcn.0041e0fd
mov dword [esp], 0x4302e0
push edi
mov dword [0x4383dc], eax
call esi
push eax
call fcn.0041e0fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4383e0], eax
call esi
push eax
call fcn.0041e0fd
mov dword [0x4383e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f25b
test eax, eax
pop ecx
pop ecx
je 0x425c25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b19b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x425c57
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041e0fd
cmp eax, ebx
pop ecx
mov dword [0x4383ec], eax
je 0x425c57
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e0fd
pop ecx
mov dword [0x4383e8], eax
mov eax, dword [0x4383e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x425cdc
cmp dword [0x4383ec], ecx
je 0x425cdc
push eax
call fcn.0041e174
push dword [0x4383ec]
mov esi, eax
call fcn.0041e174
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x425cdc
cmp edi, ebx
je 0x425cdc
call esi
cmp eax, ebx
je 0x425ca9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425ca9
test byte [ebp - 0x18], 1
jne 0x425cdc
lea eax, [ebp - 0x10]
push eax
call fcn.0041f292
test eax, eax
pop ecx
je 0x425cc4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b19b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x425cd3
or dword [ebp + 0x10], 0x200000
jmp 0x425d17
or dword [ebp + 0x10], 0x40000
jmp 0x425d17
mov eax, dword [0x4383e0]
cmp eax, dword [ebp - 8]
je 0x425d17
push eax
call fcn.0041e174
cmp eax, ebx
pop ecx
je 0x425d17
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x425d17
mov eax, dword [0x4383e4]
cmp eax, dword [ebp - 8]
je 0x425d17
push eax
call fcn.0041e174
cmp eax, ebx
pop ecx
je 0x425d17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4383dc]
call fcn.0041e174
cmp eax, ebx
pop ecx
je 0x425d37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425d39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret