joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30052fce
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 0x30052ff5
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 0x30053073
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x30053044
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x30053058
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 0x300530b5
mov edx, eax
sub edx, esi
lea edi, [edx + ebx + 0xfff]
and edi, 0xfffff000
cmp edi, 0x10000
jg 0x30053044
push 4
mov ecx, edi
sub ecx, eax
push 0x1000
add ecx, esi
push ecx
push eax
call ebp
test eax, eax
je 0x30053044
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 0x30053227
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 0x300532a2
mov edx, dword [0x300bc890]
cmp eax, ebp
jne 0x3005325e
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x300532a2
test dl, 1
je 0x30053278
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x30053282
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x300532d4
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 0x3005329e
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x3005324f
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x300532cb
movzx eax, ax
cmp word [eax*2 + 0x300a4888], 5
jne 0x300532cb
push eax
call fcn.30059fa8
add esp, 4
test eax, eax
jne 0x3005323d
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 0x300533d7
Capabilities:
Encrypt data using rc4 prga

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

Disassembly:
push ebp
mov eax, 0x1084
lea ebp, [esp - 0x1004]
call fcn.30063132
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.30054543
add esp, 0xc
test eax, eax
jne 0x30054897
or eax, 0xffffffff
jmp 0x30054a08
cmp word [ebp - 0x68], 0
push esi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x74], esi
je 0x300548b0
inc esi
inc esi
cmp word [esi], 0
jne 0x300548a5
mov dword [ebp - 0x74], esi
push edi
call fcn.3005435f
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.300561b0
add esp, 0x1c
test eax, eax
jne 0x300548e3
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
mov dword [ebp - 0x80], eax
jbe 0x300548f3
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.3004ec91
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 0x300549ae
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
jb 0x3005495d
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
jne 0x30054911
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.3004ec91
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 0x300549b9
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.30056266
add esp, 0x18
push dword [0x30066ab4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x100c], 0
je 0x30054a05
push dword [ebp + 0x1010]
lea eax, [ebp - 0x68]
push dword [ebp + 0x100c]
push eax
call fcn.3004fe88
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x1000]
pop edi
pop ebx
call fcn.30063125
add ebp, 0x1004
leave
ret

Function at 0x30054a1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x30054a64
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 0x30054a63
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 0x30054a66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
jne 0x30054a76
xor eax, eax
leave
ret
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
xor ebx, ebx
call fcn.300545ff
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], ebx
call fcn.30052fce
test eax, eax
jne 0x30054aae
push 0x11a
push esi
mov dword [ebp - 8], 1
call fcn.300542f9
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x30054b12
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.30054692
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x30054b0a
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 0x30054af9
cmp dword [ebp - 0xc], esi
jne 0x30054af9
xor ebx, ebx
inc ebx
jmp 0x30054afb
xor ebx, ebx
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30054a1d
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 0x30054b37
cmp dword [ebp - 8], 0
push dword [ebp - 4]
je 0x30054b32
call fcn.30054233
pop ecx
jmp 0x30054b37
call fcn.300530c9
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x3005572b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.30063132
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.30054543
add esp, 0xc
test eax, eax
je 0x30055835
push edi
push 0x30014df0
call fcn.3004eccc
mov edi, eax
test edi, edi
je 0x30055834
push esi
lea eax, [ebp - 0x2094]
push eax
push edi
call fcn.3004feca
push edi
call fcn.300530c9
call fcn.30055718
test eax, eax
je 0x30055832
call fcn.30054cea
test eax, eax
je 0x30055832
lea eax, [ebp - 0x104c]
push esi
push eax
call fcn.30054856
lea ecx, [ebp - 0x2094]
push ecx
push 1
push eax
call fcn.30054a66
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x300557da
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30055832
mov eax, dword [0x300a4870]
test eax, eax
je 0x300557f7
push eax
call fcn.30054161
and dword [0x300a4870], 0
and dword [0x300a4874], 0
lea eax, [ebp - 0x104c]
push eax
call fcn.3004eb5c
inc eax
mov dword [0x300a4874], eax
push 0x11a
add eax, eax
push eax
call fcn.3005424c
test eax, eax
mov dword [0x300a4870], eax
je 0x30055832
push dword [0x300a4874]
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.3004fe88
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.30063125
leave
ret
Function at 0x300561b0
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 0x30056226
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x30056226
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 0x30056226
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x14]
jne 0x30056226
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x30056237
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x30056248
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x3005625e
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x30014eb4
jl 0x300561d6
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30056266
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 0x300562da
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 0x300562da
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 0x300562da
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x300562ea
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x300562f4
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3005636e
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 0x300564a4
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x300564a4
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.30059cd5
mov dword [ebp - 0x408], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x408], ebx
je 0x300563ec
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 0x30056463
mov eax, edi
shr eax, 0x1a
not eax
test al, 1
je 0x30056463
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30059e96
test eax, eax
je 0x3005644e
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.30059c7d
cmp ebx, 5
jne 0x3005644e
cmp dword [ebp + 8], 0
jne 0x3005644e
mov dword [ebp + 8], 1
xor ebx, ebx
jmp 0x300563c8
cmp dword [esi], 0
je 0x30056461
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 0x3005646f
cmp eax, 0xffffffff
jne 0x3005647a
mov dword [esi], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0x10], ebx
je 0x30056490
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x408]
call fcn.3004feaa
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x3005649c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40c]
jmp 0x300564a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.30063125
leave
ret 0x1c

Function at 0x300567c4
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 0x30056808
call ebx
test eax, eax
jns 0x300567fe
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 0x30056824
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30056854
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x3005684a
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x3005683e
push dword [eax + 8]
call dword [eax]
jmp 0x30056844
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x30056853
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 0x30058c6f
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 0x30058cf4
test si, 0x3ff
je 0x30058cf4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.30058bf0
add esp, 0xc
test eax, eax
jne 0x30058d00
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 0x30058ce7
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.30058b69
add esp, 0xc
test eax, eax
je 0x30058ce7
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 0x30058d00
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x30058d00
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 0x3005a0e1
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x3005a0fd
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.3004fe88
mov edi, eax
lea eax, [edi - 2]
cmp word [eax], 0x5c
jne 0x3005a135
mov edi, eax
and word [edi], 0
lea eax, [ebp - 0x20c]
cmp edi, eax
mov esi, edi
jbe 0x3005a170
cmp word [esi], 0x5c
jne 0x3005a15b
and word [esi], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.3005a0e1
test eax, eax
jne 0x3005a169
dec esi
dec esi
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x3005a141
jmp 0x3005a18f
mov word [esi], 0x5c
jmp 0x3005a18f
cmp word [esi], 0
jne 0x3005a18d
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x3005a1a4
mov word [esi], 0x5c
inc esi
inc esi
cmp esi, edi
jbe 0x3005a170
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30063125
leave
ret 4
xor eax, eax
jmp 0x3005a196
Function at 0x30063125
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.30063125
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x30062ffd
ret
Function at 0x300631e4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x30016260
call fcn.30062fb1
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 0x30063224
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30063224
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3006323c
cmp eax, 0x20b
je 0x30063229
mov dword [ebp - 0x1c], ebx
jmp 0x30063250
cmp dword [ecx + 0x84], 0xe
jbe 0x30063224
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3006324a
cmp dword [ecx + 0x74], 0xe
jbe 0x30063224
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.30063426
call fcn.3006368e
cmp dword [0x30096fa4], ebx
jne 0x300632b0
push 0x3002e886
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.3006367c
push 0x3006601c
push 0x30066018
call sub.MSVCRT.dll__initterm
push 0x3006346a
call fcn.30063414
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 0x30063304
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 0x30063382
cmp al, bl
je 0x3006332e
cmp dword [ebp - 0x20], ebx
jne 0x30063382
mov al, byte [esi]
cmp al, bl
je 0x3006333e
cmp al, 0x20
ja 0x3006333e
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3006332e
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3006335a
movzx eax, word [ebp - 0x54]
jmp 0x3006335d
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 0x3006337a
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x300633d7
cmp al, 0x22
jne 0x30063391
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 0x300633a4
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3006331c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30062fec
ret
Function at 0x438c8a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
and ecx, ecx
sub esi, 0xf8712d65
call fcn.00438ccc
sub ecx, ecx
sub ecx, 0xa9f21185
add ecx, 0xf8289a8e
xor dword [edx], eax
sub esi, esi
add edx, 1
sub ecx, 0x307b963
sub esp, 4
mov dword [esp], ecx
pop ecx
cmp edx, ebx
jne fcn.00438c8a
add ecx, esi
add esi, ecx
ret