joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4685e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48e980
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00488cf0
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x468613
xor al, al
jmp 0x46873f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x468635
xor al, al
jmp 0x46873f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x468648
xor al, al
jmp 0x46873f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46865c
xor al, al
jmp 0x46873f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0047cf2c
test eax, eax
jne 0x468690
xor al, al
jmp 0x46873f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4a3164
mov dword [esp + 0x20], ebp
call fcn.00488cf0
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00485a3f
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00485a96
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x468724
mov ax, word [ebx]
test ax, ax
je 0x468716
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00468760
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4686fa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00485a96
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x468c60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004870ef
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x468ca6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0046cf98
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4bd1b4
push ecx
call fcn.0046ea8b
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4695b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x469653
test eax, eax
jbe 0x469653
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x469653
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4695fe
xor esi, esi
jmp 0x469604
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46962f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00404420
add esi, eax
push esi
mov ebx, esi
call fcn.00404420
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x469610
pop ebp
test edi, edi
pop edi
jne 0x469653
test ebx, ebx
je 0x469653
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046da20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x469790
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4698ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4698ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048065e
mov esi, eax
test esi, esi
je 0x4698ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4698ad
mov ecx, esi
call fcn.00469700
cmp edi, eax
jge 0x4698ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x469833
mov dword [esp + 0x34], 1
jmp 0x46988e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4698ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00468d00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x481002
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48103a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047f0a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047f07c
jmp 0x481046
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4827f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48283b
call fcn.00488cf0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48283b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482832
xor eax, eax
jmp 0x482843
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482849
pop edi
pop esi
pop ebx
ret 4
Function at 0x40119f
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x628], edi
call fcn.00416210
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.00416210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push str._sUdAntiCap_d.exe
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401307
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00416210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call esi
cmp dword [ebp + 8], 0x20
jne 0x4012af
mov eax, dword [ebp - 0x628]
cmp byte [eax + 0xa8], bl
lea eax, [ebp - 0x214]
je 0x4012bb
push str.SysWOW64
jmp 0x4012c0
cmp dword [ebp + 8], 0x40
jne 0x4012ce
lea eax, [ebp - 0x214]
push str.System32
push 0x104
push eax
call fcn.0041628a
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call esi
push 0x208
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.00416210
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push str._sUdAntiCap_d.exe
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x41c]
call fcn.004014b0
test al, al
je 0x4013c5
push 0x10
lea eax, [ebp - 0x638]
push ebx
push eax
call fcn.00416210
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x684]
push ebx
push eax
call fcn.00416210
add esp, 0xc
mov dword [ebp - 0x684], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x628]
lea edx, [ecx + 0x58]
push edx
add ecx, 8
push ecx
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push str.__s___t:_X__n:_s__c:_s
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x684]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4013c5
push 0x1388
push dword [ebp - 0x638]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x638]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x634]
call esi
mov al, 1
jmp 0x4013c7
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret 4
Function at 0x4017b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40180e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401800
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017fc
cmp edi, eax
jae 0x401800
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4017ee
cmp edi, eax
jb 0x401804
xor eax, eax
jmp 0x40180d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x401d0b
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x78]
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
or dword [ebp - 0x70], 0xffffffff
mov edi, eax
mov eax, dword [0x4341fc]
mov ecx, 0x4341fc
call dword [eax + 0xc]
push 0x10
pop ecx
add eax, ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.004025a5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x6c]
push str._App_GetReadCount_md5_semail_svisitor_s
call fcn.00402bdd
mov eax, dword [ebp - 0x68]
add esp, 0x18
add eax, 0xfffffff0
call fcn.004018b2
cmp edi, ebx
je 0x401e26
push 0x13
pop ecx
mov esi, str.Content_Type:_text_html__charsetUTF_8
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push 0x42cd00
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
push 0x42cd1c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov esi, eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00416b1e
pop ecx
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x401e13
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401e13
lea eax, [ebp - 0x14]
push eax
call fcn.00416987
pop ecx
mov dword [ebp - 0x70], eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 0x68]
call edi
push dword [ebp - 0x74]
call edi
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004018b2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret
Function at 0x4020c0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4021a1
push 0x13
pop ecx
mov esi, str.Content_Type:_text_html__charsetUTF_8
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push 0x42cd00
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
push ebx
push ebx
push ebx
push ebx
push ebx
push str._App_GetTime
push 0x42cd1c
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov esi, eax
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00416b1e
pop ecx
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40218e
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40218e
lea eax, [ebp - 0x14]
push eax
call fcn.00416987
pop ecx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
jbe 0x40218e
push eax
call fcn.004023bf
pop ecx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 0x74]
call edi
push dword [ebp - 0x70]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret
Function at 0x4023bf
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x433024]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42cd7c
lea eax, [esp + 0x7c]
push esi
push eax
call fcn.0041628a
push 0x42cd80
lea eax, [esp + 0x88]
push esi
push eax
call fcn.0041628a
add esp, 0x18
xor esi, esi
push esi
push 4
push 2
push esi
push esi
push 0x40000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402484
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
call esi
test eax, eax
je 0x40247d
push 4
lea eax, [ebp + 8]
push eax
lea edi, [esp + 0x70]
lea ecx, [esp + 0x18]
call fcn.00426430
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
mov eax, edi
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x402486
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416201
mov esp, ebp
pop ebp
ret

Function at 0x40249b
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x433024]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42cd7c
lea eax, [esp + 0x84]
push esi
push eax
call fcn.0041628a
push 0x42cd80
lea eax, [esp + 0x90]
push esi
push eax
call fcn.0041628a
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40258f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x402585
push edi
call fcn.0041679c
pop ecx
push 0
mov esi, eax
lea eax, [esp + 0x18]
push eax
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00416370
add esp, 0xc
push 4
lea eax, [esp + 0x10]
push eax
lea edi, [esp + 0x78]
lea ecx, [esp + 0x20]
call fcn.00426430
xor eax, eax
mov cl, byte [esp + eax + 0x70]
cmp cl, byte [esi + eax + 4]
jne 0x402585
inc eax
cmp eax, 0x10
jl 0x40256f
mov eax, dword [esp + 0xc]
jmp 0x402591
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.00416201
mov esp, ebp
pop ebp
ret
Function at 0x40385b
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x433024]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x14c]
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x403895
push eax
call fcn.00416b39
pop ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jne 0x403917
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42ce08
push 0x12e
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x403a72
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403a72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x403a72
push dword [esp + 0x14]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esp + 0x18], eax
call fcn.0041679c
pop ecx
push dword [esp + 0x14]
mov esi, eax
push dword [esp + 0x14]
push esi
call fcn.00416370
add esp, 0xc
jmp 0x403990
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403a72
mov ecx, dword [edi + 0xc0]
call fcn.00427a70
mov ecx, dword [edi + 0x130]
push ebx
push ebx
mov dword [esp + 0x1c], eax
call fcn.00427a70
add eax, 0x2c
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x14]
call fcn.0041679c
pop ecx
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x403a72
mov eax, dword [0x4341fc]
mov ecx, 0x4341fc
call dword [eax + 0xc]
push dword [edi + 0x12c]
add eax, 0x10
push dword [edi + 0x128]
mov dword [esp + 0x18], eax
push str._cn__d_cxy__dhzr
lea eax, [esp + 0x1c]
call fcn.00402bdd
add esp, 0xc
lea eax, [edi + 0x118]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x10
pop ecx
call fcn.004025a5
pop ecx
pop ecx
lea ecx, [esp + 0x10]
call fcn.0040349a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004018b2
mov ecx, dword [edi + 0xc0]
call fcn.00427a70
mov ebx, eax
push ebx
call fcn.0041679c
pop ecx
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, eax
mov dword [edi + 0x14c], eax
call fcn.00427d80
pop ecx
push dword [edi + 0xc0]
lea ecx, [esp + 0x24]
push dword [edi + 0x14c]
lea edi, [esp + 0x84]
call fcn.00426430
mov dword [esp + 0x18], 1
xor eax, eax
mov cl, byte [esp + eax + 0x7c]
mov edx, dword [esp + 0x1c]
cmp cl, byte [edx + eax + 0xc8]
jne 0x403a5a
inc eax
cmp eax, 0x10
jb 0x403a41
jmp 0x403a5f
and dword [esp + 0x18], 0
push esi
call fcn.00416b39
mov eax, dword [esp + 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b2
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416201
mov esp, ebp
pop ebp
ret 4
Function at 0x403f95
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x234], 0
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
mov esi, 0x22c
push ebx
mov dword [ebp - 0x230], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40402a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x403ffa
lea eax, [ebp - 0x20c]
push str.excel.exe
push eax
call fcn.004172ab
pop ecx
pop ecx
test eax, eax
je 0x404010
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], esi
call edi
test eax, eax
jne 0x403fe3
jmp 0x40401c
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret

Function at 0x404922
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404986
cmp dword [ebp + 0xc], 1
je 0x40495e
cmp dword [ebp + 0xc], 2
je 0x40495e
push 0xd
pop eax
jmp 0x404986
mov eax, dword [ebp - 4]
test edi, edi
je 0x404980
test eax, eax
je 0x40497b
test al, 1
jne 0x404959
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404980
jmp 0x404959
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8