joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ae13
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x208
push esi
push edi
mov edi, ecx
and dword [edi + 8], 0
mov dword [edi + 4], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
mov dword [edi], 0x4215a8
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea esi, [edi + 0xc]
push esi
push 0
push 0x421608
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
and dword [edi + 0x214], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41af79
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push esi
push edi
mov esi, ecx
call fcn.0041b33c
imul eax, eax, 0x104
mov dword [ebp - 8], eax
lea eax, [eax*2 + 0x14]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x41b0a9
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x41b0a8
add esi, 0xc
mov dword [ebx], 0x14
push esi
push 0x104
lea eax, [ebp - 0x668]
mov dword [ebx + 0x10], 1
push eax
call fcn.004048da
lea eax, [ebp - 0x668]
push eax
call fcn.00402876
pop ecx
push esi
mov esi, 0x104
lea eax, [ebp - 0x460]
push esi
push eax
add ebx, 0x14
call fcn.004048da
push str..
push esi
lea eax, [ebp - 0x460]
push eax
call fcn.0041b645
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b08f
mov edi, dword [ebp - 8]
xor eax, eax
inc eax
test eax, eax
je 0x41b08c
lea eax, [ebp - 0x22c]
push eax
call fcn.0041b0af
pop ecx
test eax, eax
jne 0x41b07c
lea eax, [ebp - 0x668]
push eax
push edi
push ebx
call fcn.0041b645
lea eax, [ebp - 0x22c]
push eax
push edi
push ebx
call fcn.0041b645
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ebx, [ebx + eax*2]
add ebx, 2
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
jmp 0x41b03e
mov edi, dword [ebp - 4]
test esi, esi
je 0x41b09f
cmp esi, 0xffffffff
je 0x41b09f
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b33c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x22c]
push edi
xor edi, edi
call fcn.004018b5
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004021a6
push 0x42161c
lea ecx, [ebp - 0x22c]
call fcn.004020d8
lea eax, [ebp - 0x47c]
xor ebx, ebx
push eax
push dword [ebp - 0x220]
inc ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b3bb
test ebx, ebx
je 0x41b3bb
lea eax, [ebp - 0x450]
push eax
call fcn.0041b0af
pop ecx
test eax, eax
jne 0x41b3a9
inc edi
lea eax, [ebp - 0x47c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
mov ebx, eax
jmp 0x41b393
test esi, esi
je 0x41b3cb
cmp esi, 0xffffffff
je 0x41b3cb
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x22c]
call fcn.00401bbd
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c7f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push 5
lea eax, [ebp - 0xc]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
xor eax, eax
xor edi, edi
push 0x1fe
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
push 0xa
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__ui64tow]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x414]
add esp, 0x1c
mov esi, edi
push eax
call ebx
test eax, eax
jle 0x41c8bb
lea eax, [ebp - 0x414]
push eax
call ebx
sub eax, esi
push 3
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x41c890
test esi, esi
jle 0x41c890
lea eax, [ebp - 0xc]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b645
inc edi
mov ax, word [ebp + esi*2 - 0x414]
lea ecx, [esi + edi]
mov word [ebp + ecx*2 - 0x20c], ax
xor eax, eax
mov word [ebp + ecx*2 - 0x20a], ax
inc esi
lea eax, [ebp - 0x414]
push eax
call ebx
cmp esi, eax
jl 0x41c861
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004048da
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c921
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
mov ebx, ecx
xor esi, esi
push esi
push dword [ebx + 0x1918]
mov eax, dword [ebx + 0x1dfc]
push 0x66
push dword [ebx + 0x1914]
or eax, 0x54000140
push esi
push esi
push esi
push esi
push eax
push 0x42143c
push str.SysListView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x1df4], eax
test eax, eax
je 0x41caaa
push edi
push 7
xor eax, eax
lea edi, [ebp - 0x20]
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x1e2c]
mov dword [ebp - 0x24], 0x2f
mov edi, esi
mov dword [ebp - 4], eax
mov esi, 0x425868
mov ecx, eax
push dword [ecx - 0x24]
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
call fcn.00420963
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov eax, dword [ebx + eax*4 + 0x177c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0x1061
push dword [ebx + 0x1df4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
add esi, 0xc
add ecx, 4
inc edi
mov dword [ebp - 4], ecx
cmp esi, 0x4258d4
jl 0x41c996
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0x1037
push dword [ebx + 0x1df4]
call esi
or eax, 0x31
push eax
push edi
push 0x1036
push dword [ebx + 0x1df4]
call esi
lea eax, [ebx + 0x1e2c]
push eax
push 9
push 0x103a
push dword [ebx + 0x1df4]
call esi
push 0x2b0
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d8], edi
push edi
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push 0x4011
push 0x2b4
push eax
push edi
push 0x4216a8
call esi
push 0x4010
push 0x2b4
mov edi, eax
lea eax, [ebp - 0x2d8]
push eax
push 0
push 0x4216a8
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x1003
push dword [ebx + 0x1df4]
call esi
push edi
push 1
push 0x1003
push dword [ebx + 0x1df4]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d044
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareSpeedProjectSCSfx1.0
push 0x80000001
mov esi, ecx
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d1cc
push ebx
push 4
pop ebx
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
lea eax, [esi + 0x1dfc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.ViewStyle
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [esi + 0x1e00]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.SortColumn
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [esi + 0x1e04]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.SortAscending
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [esi + 0x1e60]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.LastFolder
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 3
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0x24
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.ColumnWidth
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x41d148
cmp dword [ebp - 4], 0x24
jne 0x41d148
push 0x24
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0x1e08]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.ColumnOrder
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x41d185
cmp dword [ebp - 4], 0x24
jne 0x41d185
push 0x24
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0x1e2c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.WindowSize
push dword [ebp - 0xc]
call edi
pop ebx
test eax, eax
jne 0x41d1c3
cmp dword [ebp - 4], 0x10
jne 0x41d1c3
push 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x1e50]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e13e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x41e1c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41e1c5
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x41e1c5
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41e1c5
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x41e1be
push ebx
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
lea eax, [ebp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x41e1be
mov eax, dword [ebp + 0xc]
jmp 0x41e1c7
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x41e2fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareSpeedProjectSCSfx1.0
push 0x80000001
mov ebx, ecx
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41e3ea
push esi
push 4
pop esi
push esi
lea eax, [ebx + 0x1dfc]
push eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.ViewStyle
push dword [ebp - 4]
call edi
push esi
lea eax, [ebx + 0x1e00]
push eax
push esi
push 0
push str.SortColumn
push dword [ebp - 4]
call edi
push esi
lea eax, [ebx + 0x1e04]
push eax
push esi
push 0
push str.SortAscending
push dword [ebp - 4]
call edi
lea esi, [ebx + 0x1e60]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push esi
push 1
xor esi, esi
push esi
push str.LastFolder
push dword [ebp - 4]
call edi
push 0x24
lea eax, [ebx + 0x1e08]
push eax
push 3
push esi
push str.ColumnWidth
push dword [ebp - 4]
call edi
push 0x24
lea eax, [ebx + 0x1e2c]
push eax
push 3
push esi
push str.ColumnOrder
push dword [ebp - 4]
call edi
push 0x10
lea eax, [ebx + 0x1e50]
push eax
push 3
push esi
push str.WindowSize
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f478
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x41f4d4
push esi
push 1
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00401970
push dword [edi]
lea ecx, [ebp + 8]
mov esi, dword [eax + 4]
call fcn.00404ae3
push ebx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004045f4
push dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.00404610
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f90e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.00402bff
neg edi
lea ecx, [ebp - 0xc]
push 1
sbb edi, edi
push 0x400
and edi, esi
push edi
call fcn.00401970
push 0
push dword [ebp + 8]
push dword [eax + 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov esi, eax
call fcn.00404610
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41f95f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.00402bff
neg edi
lea ecx, [ebp - 0xc]
push 1
sbb edi, edi
and edi, esi
mov esi, 0x400
push esi
push edi
call fcn.00401970
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push dword [ebp - 4]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 0xc]
sbb esi, esi
neg esi
call fcn.00404610
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41fbc4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x1914]
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x1dd0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x804000
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41fed1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax]
mov ebx, ecx
lea ecx, [ebp + 8]
call fcn.0041e819
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x920]
push esi
push 0x800
push eax
push 0x421624
push 0x4218c0
push str.description
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor edi, edi
test eax, eax
je 0x42000c
mov eax, edi
lea ecx, [ebx + 0x177c]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ecx
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x920]
push esi
push 0x800
push eax
push 0x421624
lea eax, [ebp - 0x1c]
push eax
push str.data
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x42000c
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x120]
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfde9
push eax
lea eax, [ebp - 0x920]
push eax
call fcn.0041abee
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.0041f704
lea ecx, [ebp - 0x11c]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x120], ecx
je 0x41ffd5
push dword [ebp - 0x120]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
test eax, eax
je 0x42000c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
mov ecx, ebx
call fcn.00420b34
mov eax, dword [ebp - 4]
add dword [ebp + 8], 4
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x59
jl 0x41ff36
push 4
push 0x1e
mov ecx, ebx
call fcn.0041edfa
test eax, eax
je 0x42000c
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004045f4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4070e0
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 0x4070f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407134
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407130
lea ebx, [ebx]
cmp esi, eax
jae 0x407134
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407120
cmp esi, eax
jb 0x40713a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x410812
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410840
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41085e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041077c
jmp 0x41085e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41085e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041077c
test edi, edi
mov eax, edi
jne 0x410848
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43a0d0]
test ecx, ecx
je 0x410921
jmp 0x410811
ret 8

Function at 0x41353d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436e88]
jne 0x413547
repz ret
jmp fcn.004194cc
Function at 0x42303b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418f10
xor ebx, ebx
cmp dword [0x43ae34], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x423110
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42307b
xor eax, eax
jmp 0x4231d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x430290
push edi
call esi
cmp eax, ebx
je 0x423074
push eax
call fcn.00418ead
mov dword [esp], 0x430280
push edi
mov dword [0x43ae34], eax
call esi
push eax
call fcn.00418ead
mov dword [esp], 0x43026c
push edi
mov dword [0x43ae38], eax
call esi
push eax
call fcn.00418ead
mov dword [0x43ae3c], eax
lea eax, [ebp - 8]
push eax
call fcn.00414cbe
test eax, eax
pop ecx
pop ecx
je 0x4230de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413556
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x423110
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418ead
cmp eax, ebx
pop ecx
mov dword [0x43ae44], eax
je 0x423110
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418ead
pop ecx
mov dword [0x43ae40], eax
mov eax, dword [0x43ae40]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x423189
cmp dword [0x43ae44], esi
je 0x423189
push eax
call fcn.00418f19
pop ecx
call eax
cmp eax, ebx
je 0x423156
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43ae44]
call fcn.00418f19
pop ecx
call eax
test eax, eax
je 0x423156
test byte [ebp - 0x18], 1
jne 0x423189
lea eax, [ebp - 0xc]
push eax
call fcn.00414cf5
test eax, eax
pop ecx
je 0x423171
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413556
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x423180
or dword [ebp + 0x10], 0x200000
jmp 0x4231ba
or dword [ebp + 0x10], 0x40000
jmp 0x4231ba
mov eax, dword [0x43ae38]
cmp eax, esi
je 0x4231ba
push eax
call fcn.00418f19
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4231ba
mov eax, dword [0x43ae3c]
cmp eax, esi
je 0x4231ba
push dword [ebp - 4]
push eax
call fcn.00418f19
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43ae34]
call fcn.00418f19
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428359
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x436e88]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004282ee
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.004136d0
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 0x4283a8
cmp dword [ebp - 0x1c], 5
jb 0x4283c0
jmp 0x4283bc
cmp dword [ebp - 0x10], 1
jne 0x4283c0
cmp dword [ebp - 0x1c], 4
ja 0x4283bc
jne 0x4283c0
cmp dword [ebp - 0x18], 0
jbe 0x4283c0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4303a0
call fcn.004281c2
test eax, eax
jge 0x4283e1
mov byte [0x4385a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041353d
add ebp, 0x78
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7cd241c3
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xce3a34
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402424
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x40243b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x402470
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40246c
cmp edi, eax
jae 0x402470
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40245e
cmp edi, eax
jb 0x402474
xor eax, eax
jmp 0x40247e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4026eb
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x58
xor esi, esi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00451930
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
push ebx
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.00402751
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.004027e7
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00451a25
leave
ret

Function at 0x402b45
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x402b58
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x404e35
Capabilities:
Terminate process

Disassembly:
push ebx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x404e49
push ebx
call fcn.0041fce8
test eax, eax
pop ecx
jne 0x404e8b
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x404e5d
push edi
call fcn.0041fce8
test eax, eax
pop ecx
jne 0x404e8a
mov eax, ebx
call fcn.0041fccd
mov eax, edi
call fcn.0041fccd
lea eax, [esi + 0xc]
cmp dword [eax], 0
mov byte [esi + 0x10], 0
je 0x404e7b
xor eax, eax
jmp 0x404e8a
push esi
push 0x404e0b
push eax
call fcn.0041fc4b
add esp, 0xc
pop edi
pop ebx
ret