joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30052e0e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 8]
push ebx
lea ebx, [eax + 1]
push edi
mov edi, dword [esp + 0xc]
and ebx, 0xfffffffe
test eax, eax
mov dword [edi], 0
jge 0x30052e35
mov dword [edi], 0
pop edi
xor eax, eax
pop ebx
ret 8
mov eax, dword [0x30066abc]
push ebp
push esi
push eax
call sub.KERNEL32.dll_TlsGetValue
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x30052eb3
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x30052e84
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x30052e98
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x30066abc]
push esi
push ecx
call sub.KERNEL32.dll_TlsSetValue
lea edx, [esi + 0x1000]
lea eax, [esi + 8]
mov dword [esi + 4], edx
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add ecx, ebx
cmp ecx, eax
jbe 0x30052ef5
mov edx, eax
sub edx, esi
lea edi, [edx + ebx + 0xfff]
and edi, 0xfffff000
cmp edi, 0x10000
jg 0x30052e84
push 4
mov ecx, edi
sub ecx, eax
push 0x1000
add ecx, esi
push ecx
push eax
call ebp
test eax, eax
je 0x30052e84
add edi, esi
mov dword [esi + 4], edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
mov dword [edi], eax
add eax, ebx
mov dword [esi], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret 8

Function at 0x30053067
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x300530e2
mov edx, dword [0x300bc890]
cmp eax, ebp
jne 0x3005309e
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x300530e2
test dl, 1
je 0x300530b8
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x300530c2
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x30053114
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x300530de
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x3005308f
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x3005310b
movzx eax, ax
cmp word [eax*2 + 0x300a4888], 5
jne 0x3005310b
push eax
call fcn.30059dea
add esp, 4
test eax, eax
jne 0x3005307d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x30053217
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300bc890], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x30053246
mov cx, word [eax]
test cx, cx
je 0x30053246
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30053253
cmp ecx, edx
je 0x30053253
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.30053067
ret
Function at 0x30054696
Capabilities:
Set file attributes

Disassembly:
push ebp
mov eax, 0x1084
lea ebp, [esp - 0x1004]
call fcn.30062f74
mov eax, dword [section..cdata]
push ebx
push edi
xor edi, edi
inc edi
push edi
mov dword [ebp + 0x1000], eax
mov ebx, 0x824
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.30054383
add esp, 0xc
test eax, eax
jne 0x300546d7
or eax, 0xffffffff
jmp 0x30054848
cmp word [ebp - 0x68], 0
push esi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x74], esi
je 0x300546f0
inc esi
inc esi
cmp word [esi], 0
jne 0x300546e5
mov dword [ebp - 0x74], esi
push edi
call fcn.3005419f
push 4
pop eax
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
push 0x30014e48
push 0x30014e5c
push SysReAllocString
mov dword [ebp - 0x7c], eax
call fcn.30055ff0
add esp, 0x1c
test eax, eax
jne 0x30054723
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
mov dword [ebp - 0x80], eax
jbe 0x30054733
mov eax, edi
mov dword [ebp - 0x6c], eax
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea ecx, [ebp - 0x68]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x70], ebx
sub dword [ebp - 0x70], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0x80
push eax
push 0x30014de0
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004ead1
push 0
push esi
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x300547ee
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
jb 0x3005479d
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
jne 0x30054751
push eax
push 0x30014de0
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004ead1
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x6c], 0x64
pop esi
jb 0x300547f9
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x30014e48
push 0x30014e5c
push SysReAllocString
call fcn.300560a6
add esp, 0x18
push dword [0x30066ab4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x100c], 0
je 0x30054845
push dword [ebp + 0x1010]
lea eax, [ebp - 0x68]
push dword [ebp + 0x100c]
push eax
call fcn.3004fcc8
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x1000]
pop edi
pop ebx
call fcn.30062f67
add ebp, 0x1004
leave
ret

Function at 0x3005485d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x300548a4
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x300548a3
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x300548a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
jne 0x300548b6
xor eax, eax
leave
ret
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
xor ebx, ebx
call fcn.3005443f
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], ebx
call fcn.30052e0e
test eax, eax
jne 0x300548ee
push 0x11a
push esi
mov dword [ebp - 8], 1
call fcn.30054139
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x30054952
push edi
mov edi, 0x300bc898
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
call fcn.300544d2
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x3005494a
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30054939
cmp dword [ebp - 0xc], esi
jne 0x30054939
xor ebx, ebx
inc ebx
jmp 0x3005493b
xor ebx, ebx
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.3005485d
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x30054977
cmp dword [ebp - 8], 0
push dword [ebp - 4]
je 0x30054972
call fcn.30054073
pop ecx
jmp 0x30054977
call fcn.30052f09
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x3005556b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.30062f74
mov eax, dword [section..cdata]
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 4], eax
mov esi, 0x824
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.30054383
add esp, 0xc
test eax, eax
je 0x30055675
push edi
push 0x30014df0
call fcn.3004eb0c
mov edi, eax
test edi, edi
je 0x30055674
push esi
lea eax, [ebp - 0x2094]
push eax
push edi
call fcn.3004fd0a
push edi
call fcn.30052f09
call fcn.30055558
test eax, eax
je 0x30055672
call fcn.30054b2a
test eax, eax
je 0x30055672
lea eax, [ebp - 0x104c]
push esi
push eax
call fcn.30054696
lea ecx, [ebp - 0x2094]
push ecx
push 1
push eax
call fcn.300548a6
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x3005561a
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30055672
mov eax, dword [0x300a4870]
test eax, eax
je 0x30055637
push eax
call fcn.30053fa1
and dword [0x300a4870], 0
and dword [0x300a4874], 0
lea eax, [ebp - 0x104c]
push eax
call fcn.3004e99c
inc eax
mov dword [0x300a4874], eax
push 0x11a
add eax, eax
push eax
call fcn.3005408c
test eax, eax
mov dword [0x300a4870], eax
je 0x30055672
push dword [0x300a4874]
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.3004fcc8
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.30062f67
leave
ret
Function at 0x30055ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x30014eac
mov edi, 0x20019
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push edi
push ebx
push dword [eax]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x30056066
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x30056066
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push dword [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30056066
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x14]
jne 0x30056066
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x30056077
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x30056088
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x3005609e
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x30014eb4
jl 0x30056016
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x300560a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor esi, esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x30014eb4
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x3005611a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x3005611a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x3005611a
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x3005612a
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x30056134
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x300561ae
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push esi
je 0x300562e4
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x300562e4
push edi
mov edi, dword [ebp + 0x20]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
mov dword [ebp - 0x40c], 1
mov dword [esi], ebx
call fcn.30059b17
mov dword [ebp - 0x408], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x408], ebx
je 0x3005622c
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x17
and eax, 1
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x300562a3
mov eax, edi
shr eax, 0x1a
not eax
test al, 1
je 0x300562a3
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30059cd8
test eax, eax
je 0x3005628e
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x19
and eax, 1
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30059abf
cmp ebx, 5
jne 0x3005628e
cmp dword [ebp + 8], 0
jne 0x3005628e
mov dword [ebp + 8], 1
xor ebx, ebx
jmp 0x30056208
cmp dword [esi], 0
je 0x300562a1
xor eax, eax
cmp ebx, 0xb7
setne al
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
pop edi
je 0x300562af
cmp eax, 0xffffffff
jne 0x300562ba
mov dword [esi], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0x10], ebx
je 0x300562d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x408]
call fcn.3004fcea
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x300562dc
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40c]
jmp 0x300562e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.30062f67
leave
ret 0x1c

Function at 0x30056604
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x300bc8dc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30056648
call ebx
test eax, eax
jns 0x3005663e
push 0x30014fa0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30014f94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x300bc8d8], eax
mov dword [0x300bc8dc], 1
mov eax, dword [0x300bc8d8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30056664
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30056694
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x3005668a
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x3005667e
push dword [eax + 8]
call dword [eax]
jmp 0x30056684
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x30056693
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x30058aaf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
cmp si, 0xffff
push edi
je 0x30058b34
test si, 0x3ff
je 0x30058b34
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.30058a30
add esp, 0xc
test eax, eax
jne 0x30058b40
xor ebx, ebx
push ebx
push ebx
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x58
push edi
call esi
test eax, eax
je 0x30058b27
push 0x20
lea eax, [ebp - 0x20]
push eax
push 0x58
push edi
call esi
push 3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], ebx
call fcn.300589a9
add esp, 0xc
test eax, eax
je 0x30058b27
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x30058b40
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x30058b40
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x30059f3a
test al, 0x10
je 0x30059f3a
xor eax, eax
inc eax
jmp 0x30059f3c
xor eax, eax
ret 4

Function at 0x30059f3f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..cdata]
push esi
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.3004fcc8
mov edi, eax
lea eax, [edi - 2]
cmp word [eax], 0x5c
jne 0x30059f77
mov edi, eax
and word [edi], 0
lea eax, [ebp - 0x20c]
cmp edi, eax
mov esi, edi
jbe 0x30059fb2
cmp word [esi], 0x5c
jne 0x30059f9d
and word [esi], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.30059f23
test eax, eax
jne 0x30059fab
dec esi
dec esi
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x30059f83
jmp 0x30059fd1
mov word [esi], 0x5c
jmp 0x30059fd1
cmp word [esi], 0
jne 0x30059fcf
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x30059fe6
mov word [esi], 0x5c
inc esi
inc esi
cmp esi, edi
jbe 0x30059fb2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30062f67
leave
ret 4
xor eax, eax
jmp 0x30059fd8
Function at 0x30062f67
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30062f67
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x30062e3f
ret
Function at 0x30063026
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x30016260
call fcn.30062df3
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30063066
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30063066
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3006307e
cmp eax, 0x20b
je 0x3006306b
mov dword [ebp - 0x1c], ebx
jmp 0x30063092
cmp dword [ecx + 0x84], 0xe
jbe 0x30063066
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3006308c
cmp dword [ecx + 0x74], 0xe
jbe 0x30063066
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300bc9cc], 0xffffffff
or dword [0x300bc9d0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300bc9c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300bc9c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300bc9c8], eax
call fcn.30063268
call fcn.300634d0
cmp dword [0x30096fa4], ebx
jne 0x300630f2
push 0x3002e6e9
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.300634be
push 0x3006601c
push 0x30066018
call sub.MSVCRT.dll__initterm
push 0x300632ac
call fcn.30063256
mov eax, dword [0x300bc9bc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300bc9b8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30063146
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30066014
push 0x30066008
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x300631c4
cmp al, bl
je 0x30063170
cmp dword [ebp - 0x20], ebx
jne 0x300631c4
mov al, byte [esi]
cmp al, bl
je 0x30063180
cmp al, 0x20
ja 0x30063180
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30063170
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3006319c
movzx eax, word [ebp - 0x54]
jmp 0x3006319f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30019b35
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x300631bc
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x30063219
cmp al, 0x22
jne 0x300631d3
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x300631e6
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3006315e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30062e2e
ret
Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40ac9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov esi, ecx
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
push 5
lea eax, [esi + 0x1f38]
push 4
push eax
mov dword [esp + 0x38], esi
call fcn.00409a44
lea edi, [esi + 0x1f4c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x1f50]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
mov byte [esp + 0x230], 2
push ecx
push 0xff
mov dword [esi], 0x40c7d4
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call fcn.00409662
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1a]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x26]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.JPG
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x128]
mov ecx, ebx
push eax
call fcn.00409662
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [esi + 0x1f58], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x1f2c
mov dword [esi + 0x1f54], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x240]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x23c]
add esp, 4
cmp eax, edi
mov dword [esi + 0x1f5c], eax
mov dword [esi + 0x1f60], ecx
mov dword [esi + 0x1f64], 0x3c
mov dword [esi + 8], edi
je 0x401523
push ecx
mov ecx, esi
call fcn.00403890
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 8