joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403030
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4030a0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00402440
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d07c]
jne 0x401617
repz ret
jmp fcn.00401f23

Function at 0x406b4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044cb
and dword [ebp - 0x14], 0
cmp dword [0x44fa58], 0
mov dword [ebp - 0x18], eax
jne 0x406bff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406ca7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406ca7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44fa58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44fa5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44fa60], eax
call edi
push eax
call esi
mov dword [0x44fa68], eax
test eax, eax
je 0x406bff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44fa64], eax
mov eax, dword [0x44fa64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c58
cmp dword [0x44fa68], ecx
je 0x406c58
push eax
call esi
push dword [0x44fa68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c58
test ebx, ebx
je 0x406c58
call edi
test eax, eax
je 0x406c4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c4f
test byte [ebp - 8], 1
jne 0x406c58
or dword [ebp + 0x10], 0x200000
jmp 0x406c8b
mov eax, dword [0x44fa5c]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406c8b
mov eax, dword [0x44fa60]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44fa58]
call esi
test eax, eax
je 0x406ca7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406ca9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82207c]
jne 0x401617
repz ret
jmp fcn.00401f23

Function at 0x406b4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x82207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044cb
and dword [ebp - 0x14], 0
cmp dword [0x824a58], 0
mov dword [ebp - 0x18], eax
jne 0x406bff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406ca7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406ca7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x824a58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x824a5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x824a60], eax
call edi
push eax
call esi
mov dword [0x824a68], eax
test eax, eax
je 0x406bff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x824a64], eax
mov eax, dword [0x824a64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c58
cmp dword [0x824a68], ecx
je 0x406c58
push eax
call esi
push dword [0x824a68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c58
test ebx, ebx
je 0x406c58
call edi
test eax, eax
je 0x406c4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c4f
test byte [ebp - 8], 1
jne 0x406c58
or dword [ebp + 0x10], 0x200000
jmp 0x406c8b
mov eax, dword [0x824a5c]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406c8b
mov eax, dword [0x824a60]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x824a58]
call esi
test eax, eax
je 0x406ca7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406ca9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x46b3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x60000]
push edi
or ebp, 0xffffffff
jmp 0x46b3d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46b3d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b3c8
mov eax, 1
add ebx, ebx
jne 0x46b3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46b3e0
jne 0x46b3fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46b3e0
xor ecx, ecx
sub eax, 3
jb 0x46b410
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46b482
mov ebp, eax
add ebx, ebx
jne 0x46b41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46b428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46b44c
inc ecx
add ebx, ebx
jne 0x46b438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46b42d
jne 0x46b449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46b42d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46b46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46b45d
jmp 0x46b3ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46b46c
add edi, ecx
jmp 0x46b3ce
pop esi
mov edi, esi
mov ecx, 0x2a4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46b48a
cmp byte [edi], 5
jne 0x46b48a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46b48f
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46b507
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6cb38]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6cc30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46b4bc
mov ecx, edi
jns 0x46b4eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6cc38]
or eax, eax
je 0x46b501
mov dword [ebx], eax
add ebx, 4
jmp 0x46b4d9
call dword [esi + 0x6cc34]
mov ebp, dword [esi + 0x6cc3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46b53b
sub esp, 0xffffff80
jmp 0x4095c6
Function at 0x1001313
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [eax]
call dword [sym.imp.MSVCRT.dll__splitpath]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 1
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x80000000
call edi
test eax, eax
jne 0x10013ed
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x10013ed
lea eax, [ebp - 4]
push eax
push 1
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x80000000
call edi
test eax, eax
jne 0x10013ed
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push 0x10010f4
push dword [ebp - 4]
call edi
test eax, eax
je 0x10013c0
push dword [ebp - 4]
call esi
jmp 0x10013ed
lea eax, [ebp - 8]
push eax
mov edi, 0x1003060
push edi
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], ebx
je 0x10013f1
xor eax, eax
jmp 0x1001402
mov eax, dword [ebp - 8]
mov byte [eax + 0x1003060], bl
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4055a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x380], 0xffffffff
je 0x4055db
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
clc
invalid
invalid
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x4055e0
jmp 0x404f33
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x405627
lea eax, [ebp - 0x714]
push eax
call fcn.004035a1
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
jne 0x40562d
call fcn.00403556
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405632
jmp 0x405637
jmp 0x404f33
Function at 0x405749
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
invalid
invalid
inc eax
or al, 0x8b
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405755
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403591
xchg ebx, eax
xchg edx, eax
je 0x405715
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x40576f
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00403591
stc
cmp byte [edi + edx - 0x74cb74b7], dh
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40577e
mov eax, 0x41636f72
inc ecx
cmp dword [esi + 4], eax
jne 0x40577e
call fcn.00403591
movsd dword es:[edi], dword [esi]
jno 0x405747
loop 0x40572c
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403591
sar byte [esp + ebx], 0x92
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00403d91
add byte [ebp + 0x422690], bh
je 0x4057f9
push 1
push 0
push esi
call fcn.0040571a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
mov esi, 0x422108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
push esi
push ebp
push str._s_s_r_n
push 0x421d08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a65
push 4
push 0xc0000000
push esi
call fcn.0040571a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058e7
cmp edi, dword [esp + 0x18]
jne 0x4058e7
push str._Rename__r_n
push esi
call fcn.0040568f
test eax, eax
jne 0x4058fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a43
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d08
push eax
call fcn.004056db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b0
push eax
call fcn.0040568f
test eax, eax
je 0x4058b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405922
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405917
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058b4
Function at 0x405791
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
invalid
invalid
inc eax
or al, 0x8b
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405755
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403591
xchg ebx, eax
xchg edx, eax
je 0x405715
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x40576f
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00403591
stc
cmp byte [edi + edx - 0x74cb74b7], dh
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40577e
mov eax, 0x41636f72
inc ecx
cmp dword [esi + 4], eax
jne 0x40577e
call fcn.00403591
movsd dword es:[edi], dword [esi]
jno 0x405747
loop 0x40572c
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403591
sar byte [esp + ebx], 0x92
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00403d91
add byte [ebp + 0x422690], bh
je 0x4057f9
push 1
push 0
push esi
call fcn.0040571a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
mov esi, 0x422108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
push esi
push ebp
push str._s_s_r_n
push 0x421d08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a65
push 4
push 0xc0000000
push esi
call fcn.0040571a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058e7
cmp edi, dword [esp + 0x18]
jne 0x4058e7
push str._Rename__r_n
push esi
call fcn.0040568f
test eax, eax
jne 0x4058fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a43
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d08
push eax
call fcn.004056db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b0
push eax
call fcn.0040568f
test eax, eax
je 0x4058b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405922
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405917
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058b4
Function at 0x30001450
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x3001de98
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x3001de98
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x30003498
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push 0x30002614
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x3001d96a
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x30003634
push edi
call esi
push 0x30003628
push edi
mov dword [0x3004f804], eax
call esi
push 0x3000361c
push edi
mov dword [0x3004f808], eax
call esi
push 0x30003614
push edi
mov dword [0x3004f80c], eax
call esi
cmp dword [0x3004f804], 0
mov esi, dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [0x3004f810], eax
jne 0x3001d973
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [0x3004f808], eax
mov eax, dword [sym.imp.kernel32.dll_TlsFree]
mov dword [0x3004f804], 0x3000134e
mov dword [0x3004f80c], esi
mov dword [0x3004f810], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x30053ba4], eax
je 0x3000360e
push dword [0x3004f808]
push eax
call esi
test eax, eax
je 0x3000360e
call fcn.30003b94
push dword [0x3004f804]
call fcn.30008e63
push dword [0x3004f808]
mov dword [0x3004f804], eax
call fcn.30008e63
push dword [0x3004f80c]
mov dword [0x3004f808], eax
call fcn.30008e63
push dword [0x3004f810]
mov dword [0x3004f80c], eax
call fcn.30008e63
add esp, 0x10
mov dword [0x3004f810], eax
call fcn.30002b51
test eax, eax
je 0x30003609
push 0x30028a6b
push dword [0x3004f804]
call fcn.3000f831
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x30053ba0], eax
je 0x30003609
push 0x214
push 1
call fcn.30003acf
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x30003609
push esi
push dword [0x30053ba0]
push dword [0x3004f80c]
call fcn.3000f831
pop ecx
call eax
test eax, eax
je 0x30003609
push 0
push esi
call fcn.3000363d
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
pop edi
ret
test eax, eax
je 0x300034fc
jmp 0x30003520
call fcn.30028a2a
xor eax, eax
jmp 0x300035f9
call fcn.30028a2a
xor eax, eax
pop edi
ret
cmp dword [0x3004f808], 0
je 0x300034fc
cmp dword [0x3004f80c], 0
jne 0x300035fc
jmp 0x300034fc
Function at 0x30003967
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call main
jmp 0x3000f50a
push 0x60
push 0x3000f668
call fcn.30012fb4
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x3001d288
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
push esi
push 0
test eax, eax
je 0x3001d295
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
jne 0x3001d2a3
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x3004f6d4], esi
mov dword [0x3004f6dc], eax
mov dword [0x3004f6e0], ecx
mov dword [0x3004f6e4], edx
mov dword [0x3004f6d8], edi
call fcn.300012b8
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.300039f6
pop ecx
test eax, eax
je 0x3001d2ae
call fcn.30003498
test eax, eax
je 0x3001d2bb
call fcn.30001357
mov dword [ebp - 4], ebx
call fcn.30003087
test eax, eax
jl 0x3001d2c8
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x3004fc60], eax
call fcn.30003c5a
mov dword [0x3004f6c8], eax
call main
test eax, eax
jl 0x3001d2d5
call fcn.30003194
test eax, eax
jl 0x3001d2e2
push ebx
call fcn.30008eb5
pop ecx
test eax, eax
jne 0x3001d2ef
call fcn.300049e2
test byte [ebp - 0x44], bl
je 0x3000f663
movzx ecx, word [ebp - 0x40]
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x3001d2fb
push eax
call fcn.3000d18e
push 0xa
pop ecx
jmp 0x3000f642
push 0x12
call fcn.30027bb8
pop ecx
jmp 0x3001d34a
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x3001d34a
or edi, 0x8000
jmp 0x3000f590
push 0x1c
call fcn.30027bb8
pop ecx
jmp 0x3000f5d4
push 0x10
call fcn.30027bb8
pop ecx
jmp 0x3000f5e1
push 0x1b
call fcn.3002862c
pop ecx
jmp 0x3000f5f6
push 8
call fcn.3002862c
pop ecx
jmp 0x3000f618
push 9
call fcn.3002862c
pop ecx
jmp 0x3000f625
push eax
call fcn.3002862c
pop ecx
jmp 0x3000f634
call fcn.30028661
jmp 0x3001d330
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x3001d34f
mov eax, 0xff
call fcn.30013054
ret