joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417770
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x668], eax
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
test esi, esi
je 0x4179ce
xor eax, eax
cmp ax, word [esi]
je 0x4179ce
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26a]
push edx
xor edi, edi
mov word [esp + 0x26c], cx
call fcn.00458440
add esp, 0xc
push 0x250
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00458440
add esp, 0xc
push esi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.004544ff
lea eax, [esp + 0x26c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4177f6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x25e], 0x5c
je 0x41782a
push 0x4806c4
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.0045456e
add esp, 0xc
push 0x482478
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0045456e
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41787b
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.004541a5
add esp, 0x66c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x480a74
lea eax, [esp + 0x3c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4178b6
test dx, dx
je 0x4178b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4178b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x417890
xor eax, eax
jmp 0x4178bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41799d
mov ecx, 0x48247c
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4178f6
test dx, dx
je 0x4178f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4178f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4178d0
xor eax, eax
jmp 0x4178fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41799d
test byte [esp + 0x10], 0x10
je 0x41799c
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x472]
push ecx
mov word [esp + 0x474], ax
call fcn.00458440
add esp, 0xc
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.004544ff
lea eax, [esp + 0x474]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417955
sub eax, edx
sar eax, 1
lea edx, [esp + 0x3c]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x46a], cx
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0045456e
lea ecx, [esp + 0x474]
add esp, 0xc
push ecx
call fcn.00417770
add esp, 4
add edi, eax
jmp 0x41799d
inc edi
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
jne 0x417881
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.004541a5
add esp, 0x66c
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x66c
ret
Function at 0x4179f0
Capabilities:
Delete internet cache
Enumerate internet cache
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [esp + 8]
push eax
push 0
push 0
mov dword [esp + 0x14], 0
call edi
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434490
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
push 0
call edi
mov edi, eax
test edi, edi
je 0x417aad
push ebp
mov ebp, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test dword [esi + 0xc], 0x100000
jne 0x417a68
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea edx, [esp + 0xc]
push edx
push 0
push edi
mov dword [esp + 0x18], 0
call ebp
push esi
call fcn.00434485
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434490
add esp, 8
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
push edi
call ebp
test eax, eax
jne 0x417a55
pop ebp
test esi, esi
je 0x417aba
push esi
call fcn.00434485
add esp, 4
push 0
push 0x20
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
pop esi
test eax, eax
je 0x417af3
lea edx, [esp + 4]
push edx
call fcn.00417350
add esp, 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004541a5
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x210
ret

Function at 0x417b10
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x482488
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x18], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x417b40
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push 0x482524
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417b3a
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x417b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00458440
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x417bfa
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x417bef
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x482540
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0045456e
lea ecx, [esp + 0x14]
push ecx
call fcn.00417350
mov ecx, dword [esp + 0x220]
add esp, 0x10
xor ecx, esp
call fcn.004541a5
add esp, 0x214
ret

Function at 0x418920
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00458440
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004541a5
add esp, 0x118
ret
Function at 0x418a40
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x648
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x644], eax
mov eax, dword [esp + 0x64c]
push ebp
xor ebp, ebp
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
cmp esi, ebp
je 0x418aa3
xor edx, edx
cmp dx, word [esi]
je 0x418aa3
cmp ebx, ebp
je 0x418aa3
xor eax, eax
cmp ax, word [ebx]
je 0x418aa3
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00449d80
test eax, eax
jne 0x418abd
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.004541a5
add esp, 0x648
ret 4
push edi
push 0x206
lea eax, [esp + 0x44a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x450], dx
call fcn.00458440
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea ecx, [esp + 0x444]
push ecx
push ebp
push ebp
push 0x19
push ebp
call edi
test eax, eax
jl 0x418bc4
push 0x206
lea eax, [esp + 0x242]
xor edx, edx
push ebp
push eax
mov word [esp + 0x248], dx
call fcn.00458440
add esp, 0xc
lea ecx, [esp + 0x23c]
push ecx
push ebp
push ebp
push 5
push ebp
call edi
lea edx, [esp + 0x23c]
push 0x5c
push edx
call fcn.004546ac
mov edi, eax
lea eax, [esp + 0x44c]
push 0x5c
push eax
call fcn.004546ac
add esp, 0x10
cmp edi, ebp
je 0x418b87
cmp eax, ebp
je 0x418b87
push ebx
push eax
lea edx, [esp + 0x244]
push edx
push 0x482870
mov eax, edx
xor ecx, ecx
push 0x104
push eax
mov word [edi], cx
call fcn.004546d8
add esp, 0x18
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea edx, [esp + 0x448]
push edx
push 0x482888
mov eax, edx
push 0x104
push eax
call fcn.004546d8
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0x4806c8
push ecx
lea edx, [esp + 0x44c]
push edx
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.00419120
jmp 0x418bc6
xor eax, eax
mov ecx, dword [esp + 0x64c]
pop edi
pop ebp
xor ecx, esp
call fcn.004541a5
add esp, 0x648
ret 4

Function at 0x418be0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
cmp ax, word [esi]
je 0x418c6b
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa]
push edx
mov word [esp + 0xc], cx
call fcn.00458440
add esp, 0xc
lea eax, [esp]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x418c6b
push esi
lea ecx, [esp + 4]
push ecx
push 0x482888
mov edx, ecx
push 0x104
push edx
call fcn.004546d8
add esp, 0x14
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004541a5
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x20c
ret
Function at 0x418c90
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
sub esp, 0x54c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebp
mov ebp, dword [esp + 0x554]
push esi
mov esi, edx
xor eax, eax
push edi
mov edi, ecx
cmp esi, eax
je 0x418df6
xor ecx, ecx
cmp cx, word [esi]
je 0x418df6
cmp edi, eax
je 0x418df6
xor edx, edx
cmp dx, word [edi]
je 0x418df6
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
lea eax, [esp + 0x120]
push eax
push esi
call fcn.00449d80
test eax, eax
je 0x418df6
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x356]
push edx
mov word [esp + 0x358], cx
call fcn.00458440
add esp, 0xc
lea eax, [esp + 0x34c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x418df6
push edi
lea ecx, [esp + 0x350]
push ecx
push 0x4828a0
mov edx, ecx
push 0x104
push edx
call fcn.004546d8
add esp, 0x14
push 0
push ebx
lea eax, [esp + 0x354]
push eax
mov edx, ebp
mov ecx, esi
call fcn.00419120
push 0x110
lea ecx, [esp + 0x14]
push 0
push ecx
mov esi, eax
mov dword [esp + 0x18], 0x114
call fcn.00458440
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test esi, esi
je 0x418df2
cmp dword [esp + 0x10], 6
jb 0x418df2
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push 0
push 0
lea eax, [esp + 0x358]
push eax
push 0x482908
push 0
call edi
push 5
push 0
push 0
lea ecx, [esp + 0x358]
push ecx
push 0x482920
push 0
call edi
mov eax, esi
jmp 0x418df8
xor eax, eax
mov ecx, dword [esp + 0x554]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004541a5
add esp, 0x54c
ret 4

Function at 0x418e20
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
xor eax, eax
cmp ax, word [esi]
je 0x418ee3
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xe]
push edx
mov word [esp + 0x10], cx
call fcn.00458440
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x418ee3
push esi
lea ecx, [esp + 8]
push ecx
push 0x4828a0
mov edx, ecx
push 0x104
push edx
call fcn.004546d8
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esp, 0x14
push 5
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x482934
push 0
call esi
push 5
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x482950
push 0
call esi
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004541a5
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x20c
ret
Function at 0x418f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x438
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x434], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x440]
cmp esi, eax
je 0x419030
xor ecx, ecx
cmp cx, word [esi]
je 0x419030
cmp edi, eax
je 0x419030
xor edx, edx
cmp dx, word [edi]
je 0x419030
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
push esi
call fcn.00449d80
test eax, eax
je 0x419030
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], cx
call fcn.00458440
add esp, 0xc
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x419030
xor ecx, ecx
cmp ecx, 0x4806f8
je 0x418fe6
push 0x4806f8
lea edx, [esp + 0x234]
push edx
push 0x482968
mov eax, edx
push 0x104
push eax
call fcn.004546d8
lea ecx, [esp + 0x244]
push ecx
call fcn.00454fd5
add esp, 0x18
push edi
lea edx, [esp + 0x234]
push edx
push 0x482888
mov eax, edx
push 0x104
push eax
call fcn.004546d8
add esp, 0x14
push 0
push ebx
lea ecx, [esp + 0x238]
push ecx
mov edx, ebp
mov ecx, esi
call fcn.00419120
pop ebp
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.004541a5
add esp, 0x438
ret 4
mov ecx, dword [esp + 0x438]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004541a5
add esp, 0x438
ret 4

Function at 0x419050
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
cmp ax, word [esi]
jne 0x419082
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004541a5
add esp, 0x214
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa]
push edx
mov word [esp + 0xc], cx
call fcn.00458440
add esp, 0xc
lea eax, [esp]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41906b
xor ecx, ecx
cmp ecx, 0x4806f8
je 0x4190db
push 0x4806f8
lea edx, [esp + 4]
push edx
push 0x482968
mov eax, edx
push 0x104
push eax
call fcn.004546d8
add esp, 0x14
push esi
lea ecx, [esp + 4]
push ecx
push 0x482888
mov edx, ecx
push 0x104
push edx
call fcn.004546d8
add esp, 0x14
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.004541a5
add esp, 0x214
ret
Function at 0x419120
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x218
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov edi, edx
test ebp, ebp
jne 0x419160
xor eax, eax
jmp 0x419240
lea ecx, [esp + 0x10]
push ecx
push 0x47e634
push 1
push 0
push 0x47e664
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419159
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x50]
call eax
test edi, edi
jne 0x419190
mov edi, esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x47e6a4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x419159
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test ebx, ebx
je 0x4191e0
cmp word [ebx], 0
je 0x4191e0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.00458440
push 0
lea ebx, [esp + 0x2c]
call fcn.00417630
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
add esp, 0x10
mov ecx, ebx
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 2
push ebp
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004541a5
add esp, 0x218
ret 0xc
Function at 0x419e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4744b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x419f33
movzx edi, word [esp + 0x4c]
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call sub.gdiplus.dll_GdiplusStartup
push edi
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x41a029
mov dword [esp + 0x18], ebp
push 0x480c54
push edi
push esi
mov dword [esp + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, ebp
jne 0x419f49
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x419f33
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
jne 0x419f85
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x419f6f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esp + 0x18]
push eax
push 1
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov esi, dword [ecx]
mov ebx, ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
add esi, 0x10
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push eax
push ebx
call edx
mov eax, dword [esp + 0x18]
push eax
call fcn.00419e50
add esp, 4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, ebp
je 0x419f57
push 0xff00ff
push esi
call fcn.0041a050
add esp, 8
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x41a007
mov ecx, dword [esi + 4]
push 0xffff00ff
lea eax, [esp + 0x20]
push eax
push ecx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebp
je 0x41a007
mov dword [esi + 8], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x41a029
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x41a410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, dword [esp + 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41a45c
call fcn.00438892
test eax, eax
je 0x41a43e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x41a440
xor eax, eax
mov ecx, dword [eax + 0x20]
push 0
push edi
push 0x482bc8
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
push 0xe
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x41a47f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a46e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a4ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
movzx edx, word [esi + 4]
dec edx
shl edx, 5
add edx, 0x438
push ebp
push edx
call fcn.00457124
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41a4f2
push eax
push edi
push 0x482c08
call fcn.00412c70
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
movzx ecx, word [esi + 4]
push edi
lea edx, [ebp + 0x20c]
push 0x104
push edx
mov dword [ebp + 0x414], ecx
call fcn.004544ff
push 0x480f44
lea eax, [ebp + 4]
push 0x104
push eax
call fcn.004544ff
add esp, 0x18
cmp dword [ebp + 0x414], 0
mov dword [esp + 0x14], 0
jbe 0x41a5d6
add esi, 0x12
lea edi, [ebp + 0x424]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a604
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41a604
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [edi + 4], eax
call fcn.00457124
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [edi], eax
mov eax, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [edi]
push eax
push edx
call fcn.0045a250
lea eax, [edi - 0xc]
add esp, 0xc
test eax, eax
je 0x41a5e9
lea esi, [edi - 0xc]
call fcn.0041a3b0
test eax, eax
je 0x41a5e9
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0xe
inc eax
add edi, 0x20
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 0x414]
jb 0x41a546
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
pop ebp
pop esi
pop edi
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x20]
push 0
push ecx
push 0x482c18
call fcn.00412c70
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebp
call fcn.00456617
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x41a620
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
jne 0x41a650
xor eax, eax
pop edi
add esp, 8
ret 4
cmp dword [esp + 8], 2
jne 0x41a647
push 0
lea edx, [esp + 0xc]
push edx
push 2
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 1
call edi
test eax, eax
je 0x41a647
cmp dword [esp + 8], 2
jne 0x41a647
movzx ecx, word [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
push 2
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], ecx
call edi
test eax, eax
je 0x41a647
xor eax, eax
cmp dword [esp + 8], 2
pop edi
sete al
add esp, 8
ret 4