joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dff3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, eax
call fcn.0044bf9a
push 0x103
xor esi, esi
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.00438870
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x44e075
dec eax
je 0x44e056
dec eax
je 0x44e037
push 2
pop eax
jmp 0x44e12a
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.0044dfb7
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44e04a
jmp 0x44e092
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.0044dfb7
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44e069
jmp 0x44e092
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.0044dfb7
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44e088
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xd0c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44e0b7
xor eax, eax
jmp 0x44e12a
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x44e0bf
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0xd10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44e126
push dword [ebx + 0xd0c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd0c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd10]
mov dword [ebx + 0xd0c], edi
call esi
mov dword [ebx + 0xd10], edi
xor eax, eax
jmp 0x44e129
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x451c6b
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x452e54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40b]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 8], esi
mov byte [ebp - 0x40c], bl
call fcn.00438870
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
add esi, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x452eee
lea eax, [ebp - 0x40c]
push str._tserver_tlocal_tfileset_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x40c]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x452ec6
sub eax, ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push ebx
push 0x80
push 2
push ebx
push 1
push edi
add eax, 0x2c
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x40c]
push str.file_thash_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x40c]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452f22
push ebx
lea ecx, [ebp - 0xc]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x453539
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x46e914
push dword [ebp + 8]
call fcn.00435aa3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x453559
and dword [ebx], eax
or eax, 0xffffffff
jmp 0x4535a9
push esi
push 2
push 0
push edi
call fcn.004360b0
push edi
call fcn.00435fc1
push 0
push 0
push edi
mov esi, eax
call fcn.004360b0
lea eax, [esi + 1]
push eax
call fcn.004346fc
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00435d04
add esp, 0x30
cmp esi, eax
je 0x45359f
push dword [ebx]
call fcn.00434f98
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x4535a8
push edi
call fcn.00436199
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4535bd
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x4535e5
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x4535cf
cmp al, 0x2f
jne 0x4535de
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x4535c5
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4535f3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
jne 0x45367f
mov ecx, dword [esi + 0x2a4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
xor edi, edi
mov ecx, dword [esi + 0x2a4]
call fcn.00415e40
cmp al, 1
jne 0x45363e
push 0x64
add ebx, 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x45361e
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00438870
push ebx
lea eax, [ebp - 0x104]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x4536dc
fld dword [ebp + 8]
call fcn.00437186
cmp eax, dword [0x48ab58]
jbe 0x4536b7
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x470160]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.00437186
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x48ab60]
call edi
test eax, eax
jne 0x4536da
mov eax, dword [ebp + 0xc]
push dword [0x48ab60]
add dword [0x48a524], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8

Function at 0x45387a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x104
call fcn.004346f1
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
mov ebx, eax
push str._s_s.info
push ebx
call edi
push ebx
call fcn.00455b09
add esp, 0x18
test eax, eax
je 0x45394b
push ebx
push 0
push str.files
push 0x46e284
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push str._s_s.cab
push ebx
call edi
xor edi, edi
add esp, 0x10
mov byte [ebp + 0xb], 1
cmp dword [esi + 0x2bc], edi
jbe 0x453920
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x45394b
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.0043643c
pop ecx
pop ecx
test eax, eax
jne 0x45390d
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x4538f3
cmp byte [ebp + 0xb], 0
je 0x45394b
mov edi, dword [ebp - 4]
test edi, edi
je 0x45394b
push ebx
call fcn.00455b09
pop ecx
test eax, eax
je 0x45394b
mov eax, dword [esi + 0x2bc]
mov dword [esi + eax*4 + 0x2a8], ebx
inc dword [esi + 0x2bc]
add dword [esi + 0x2b4], edi
cmp dword [ebp - 4], 0
pop edi
setne al
pop ebx
leave
ret 8
Function at 0x453958
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, str.systemcomponents2_
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.cache_
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [edi + 0x264]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453993
sub eax, ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0043469e
add esp, 0xc
test eax, eax
jne 0x4539b7
mov eax, dword [edi + 0x290]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4539bd
sub eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.0043469e
add esp, 0xc
test eax, eax
jne 0x4539e9
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4539de
sub eax, edx
add ebx, eax
xor esi, esi
push 0x103
lea eax, [ebp - 0x12b]
push esi
push eax
mov dword [ebp - 8], esi
mov byte [ebp - 0x12c], 0
call fcn.00438870
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x46cfdc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push esi
push 0x80
push 2
push esi
push 1
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x12c]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x453a78
lea edi, [ebp - 0x12c]
call fcn.00455f63
test eax, eax
je 0x453a9f
push 0
push 0x80
push 2
push 0
push 1
push ebx
mov eax, edi
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x453a9f
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
jmp 0x453aa2
mov edi, dword [ebp + 8]
inc dword [edi + 0x2b8]
mov eax, dword [edi + 0x2b8]
push 0
push dword [edi + 0x254]
push 1
push dword [edi + 0x2b4]
push eax
call dword [edi + 0x250]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x453acf
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
js 0x453b94
cmp eax, 0x22
jle 0x453af4
cmp eax, 0x27
jne 0x453b94
mov eax, dword [esi]
push edi
test eax, eax
je 0x453b27
mov edi, dword [eax + 8]
test edi, edi
jle 0x453b36
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00438ac0
mov ecx, eax
mov dword [ebp - 4], edx
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push eax
push ecx
call fcn.0043ae30
jmp 0x453b33
mov ecx, esi
call fcn.00424f90
call fcn.00437150
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00438870
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x453b60
mov eax, 0x46c667
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
push esi
call fcn.004167e0
pop ecx
push eax
push esi
lea eax, [ebp - 0x404]
push str.__i:_s____3i_____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x453bab
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.00435832
add eax, 0x40
push eax
call fcn.00435d21
add esp, 0xc
pop esi
leave
ret
Function at 0x454aea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [ebp - 4], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x254], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x270], eax
mov al, byte [ebp + 0x24]
push edi
mov dword [esi + 0x258], ecx
mov dword [esi + 0x250], 0x458660
mov byte [esi + 0x274], al
call fcn.00434a14
mov eax, dword [ebp + 0x10]
pop ecx
cmp eax, edi
jne 0x454b6c
xor eax, eax
jmp 0x454b71
call fcn.004012e6
mov dword [esi + 0x238], eax
mov al, byte [ebp + 0x28]
mov byte [esi + 0x275], al
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x278], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x27c], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x280], eax
mov eax, dword [ebp + 0x38]
push edi
mov dword [esi + 0x284], eax
call fcn.00434a14
mov eax, dword [ebp + 0x3c]
pop ecx
cmp eax, edi
jne 0x454bb6
xor eax, eax
jmp 0x454bbb
call fcn.004012e6
mov dword [esi + 0x290], eax
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x298], eax
mov eax, dword [ebp + 0x44]
mov ebx, 0x1000
push ebx
mov dword [esi + 0x29c], eax
call fcn.004346f1
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.00438870
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x454c0f
push edi
call fcn.00434a14
mov eax, dword [ebp + 0x14]
pop ecx
call fcn.004012e6
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x46c72c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00434a14
mov eax, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, edi
jne 0x454c38
xor eax, eax
jmp 0x454c3d
call fcn.004012e6
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x454637
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
leave
ret 0x40
Function at 0x454ee9
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [ecx]
push 3
push dword [esi + 0x264]
call dword [eax + 0x30]
and dword [ebp - 4], 0
add esi, 0x2c
push esi
lea ebx, [ebp - 4]
call fcn.00453539
pop ecx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push dword [ebp - 4]
push str.C75A7F71_797A_11d2_8255_00A02455A490
call fcn.00465dcc
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call fcn.004535ac
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x4556f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00438870
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.004555e9
push 8
call fcn.00433f70
mov ebx, eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
add esp, 0x10
stosd dword es:[edi], eax
xor edi, edi
mov esi, 0x48aed8
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0043643c
pop ecx
pop ecx
test eax, eax
je 0x45578c
add esi, 0x108
inc edi
cmp esi, 0x48b400
jl 0x45573d
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4557a5
push ebx
call fcn.00433eea
pop ecx
xor eax, eax
jmp 0x4557fa
imul edi, edi, 0x108
mov ecx, dword [edi + 0x48afdc]
mov dword [ebx], ecx
mov eax, dword [edi + 0x48afdc]
inc dword [eax + 8]
jmp 0x4557f8
push 0xc
call fcn.00433f70
and dword [ebp - 4], 0
pop ecx
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call fcn.00433f70
pop ecx
push 0
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push esi
mov dword [ebx], esi
push eax
mov dword [esi + 8], 1
call fcn.004555a1
pop ecx
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x455b09
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x455b1e
xor eax, eax
pop ebp
ret
shr eax, 4
not eax
and eax, 1
pop ebp
ret

Function at 0x455b28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x455b3d
xor eax, eax
pop ebp
ret
and eax, 0x10
pop ebp
ret
Function at 0x455c74
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x564
push ebx
push esi
push edi
mov edi, 0x103
push edi
xor esi, esi
lea eax, [esp + 0x365]
push esi
push eax
mov byte [esp + 0x36c], 0
call fcn.00438870
push edi
lea eax, [esp + 0x161]
push esi
push eax
mov byte [esp + 0x168], 0
call fcn.00438870
push edi
lea eax, [esp + 0x275]
push esi
push eax
mov byte [esp + 0x27c], 0
call fcn.00438870
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0x24
lea esi, [edi + 1]
push esi
push dword [ebp + 8]
lea eax, [esp + 0x260]
push eax
call ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x368]
push eax
call ebx
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x158]
push eax
call ebx
and dword [esp + 0x10], 0
push 0x13c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00438870
push 0x46e610
lea ebx, [esp + 0x268]
call fcn.00455acd
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x455d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x46d]
push ebx
push eax
mov byte [esp + 0x474], bl
call fcn.00438870
add esp, 0xc
push ebx
push esi
lea eax, [esp + 0x470]
push eax
push ebx
push dword [esp + 0x1c]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x455df9
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_s
cmp byte [esp + 0x3c], 0x2e
je 0x455dd9
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x368]
push edi
push eax
call esi
lea eax, [esp + 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x168]
push edi
push eax
call esi
add esp, 0x20
push 1
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x455d91
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455f63
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x455f86
push esi
mov esi, edi
cmp byte [esi], 0x5c
jne 0x455f7f
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x455f6b
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x45604b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push esi
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45608a
mov eax, 0x48b438
jmp 0x456118
push edi
push esi
call fcn.00433f70
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call esi
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x46c760
push ecx
push eax
lea eax, [ebp - 0x514]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x514]
push eax
push edi
call esi
mov eax, dword [ebp - 0xc]
mov esi, 0x48b438
mov ecx, esi
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x456104
push edi
call fcn.00433eea
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x45611b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0043533f
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.00438870
add esp, 0x10
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00438870
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], 0x128
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
lea esi, [edi + 1]
push edi
lea eax, [esp + 0x145]
push ebx
push eax
mov byte [esp + 0x14c], bl
call fcn.00438870
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push esi
push eax
call fcn.004353dc
lea eax, [esp + 0x158]
push eax
call fcn.0043533f
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.00434790
add esp, 0x24
test eax, eax
je 0x456226
push dword [esp + 0x20]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
lea ecx, [esp + 0x24c]
push ecx
push ebx
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x456226
lea eax, [esp + 0x248]
push eax
call fcn.0043533f
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.00434790
add esp, 0xc
test eax, eax
jne 0x45623f
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x456190
jmp 0x456250
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x14], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45628c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea edx, [ebp - 0x108]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45629f
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x4562e3
lea esi, [ebp + edi - 0x108]
cmp byte [esi], 0x5c
jne 0x4562d8
cmp edi, 2
jle 0x4562d8
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call fcn.00457a8a
pop ecx
mov byte [esi], 0x5c
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x4562b4
lea eax, [ebp - 0x108]
push eax
call fcn.00457a8a
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret