joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e8a
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x422ab8], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ab8
je 0x405ed6
push 1
push 0
push esi
call fcn.00405db4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405ff5
cmp eax, edi
jg 0x405ff5
mov esi, 0x422eb8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405ff5
cmp eax, edi
jg 0x405ff5
push esi
push ebp
push 0x40a3e8
push 0x4226b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424730]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062b4
push 4
push 0xc0000000
push esi
call fcn.00405db4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405ff5
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 0x405fee
push edi
push esi
push ebp
call fcn.00405e2c
test eax, eax
je 0x405fee
push 0x40a3dc
push esi
call fcn.00405d19
test eax, eax
jne 0x405f8c
lea eax, [esi + edi]
push 0x40a3dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fc1
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405d19
mov ebp, eax
test ebp, ebp
je 0x405fbd
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fae
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fa8
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fc3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226b8
push eax
call fcn.00405d6f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e5b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405ffa
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40601d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e8a
pop ecx
pop ecx
inc dword [0x4247b0]
ret 8

Function at 0x406108
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060a7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406177
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x406177
cmp dword [ebp + 0xc], 1
je 0x40617a
cmp dword [ebp + 0xc], 2
je 0x40617a
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e3
xor eax, eax
test eax, eax
je 0x4065f5
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f5
xor ecx, ecx
jmp 0x4065f8
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push 0x40a3fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x40671b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f5
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40674c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x40672e
pop edi
not eax
pop esi
ret 0xc
Function at 0x100044c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, ecx
push esi
push 0
push 0
push 0x26
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
js 0x10004513
push 0x104
push str.GoogleChromeApplicationchrome.exe
push 0x104
push esi
call fcn.100134b5
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100045ff
push esi
push 0
push 0
push 0x2a
push 0
call edi
test eax, eax
js 0x10004555
push 0x104
push str.GoogleChromeApplicationchrome.exe
push 0x104
push esi
call fcn.100134b5
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100045ff
sub esp, 8
mov ecx, esi
push SysReAllocString
call fcn.10004630
test al, al
jne 0x1000461d
sub esp, 8
mov ecx, esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004630
test al, al
jne 0x1000461d
push esi
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
js 0x100045c1
push 0x104
push str.GoogleChromeApplicationchrome.exe
push 0x104
push esi
call fcn.100134b5
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100045ff
push esi
push 0
push 0
push 0x1c
push 0
call edi
test eax, eax
js 0x1000460a
push 0x104
push str.GoogleChromeApplicationchrome.exe
push 0x104
push esi
call fcn.100134b5
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call ebx
cmp eax, 0xffffffff
je 0x1000460a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
push str.chrome.exe
push 0x104
push esi
call fcn.100134c0
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x10004630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, dword [ebp + 8]
xor bl, bl
push esi
mov esi, ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100046c7
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x208
push eax
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10004696
xor eax, eax
mov word [esi], ax
jmp 0x100046be
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100046b5
xor bl, bl
jmp 0x100046be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e891
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1003cc8c]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], 0
test eax, eax
jne 0x1000b813
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1003cc8c], eax
mov edi, dword [ebp + 8]
mov ecx, edi
shr ecx, 4
inc ecx
push 0
movzx esi, cx
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1000b869
push 0x409
push esi
push 6
push dword [0x1003cc8c]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1000b869
push 8
call fcn.1000eada
push 0x100372a0
push 4
push eax
mov dword [ebx], eax
call fcn.100134c0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
push eax
push dword [0x1003cc8c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, edi
mov esi, eax
and ecx, 0xfffffff0
xor eax, eax
dec ecx
movzx eax, ax
inc ecx
lea esi, [esi + eax*2]
movzx eax, word [esi]
add esi, 2
cmp ecx, edi
jb 0x1000b887
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000eada
add edi, edi
mov dword [ebx], eax
push edi
push esi
push eax
call fcn.10010050
mov eax, dword [ebx]
add esp, 0x10
xor ecx, ecx
mov word [edi + eax], cx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10029820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002984d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002984d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010a0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4010e1
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00401d9e
add esp, 0x108
ret
lea ecx, [esp]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x4010ca
lea edx, [esp]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00401d9e
add esp, 0x108
ret
Function at 0x401120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x98
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
call sub.Storm.dll_Ordinal_463
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.004010a0
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.blizzard.ax
mov byte [esp + 0x90], 0xad
mov byte [esp + 0x91], 0x90
mov byte [esp + 0x92], 0x4e
mov byte [esp + 0x93], 0x77
mov byte [esp + 0x94], 0x4c
mov byte [esp + 0x95], 0xd
mov byte [esp + 0x96], 0x78
mov byte [esp + 0x97], 0x5c
mov byte [esp + 0x98], 0xf2
mov byte [esp + 0x99], 0xf3
mov byte [esp + 0x9a], 0x3b
mov byte [esp + 0x9b], 0xd7
mov byte [esp + 0x9c], 0xc9
mov byte [esp + 0x9d], 0xd3
mov byte [esp + 0x9e], 0x25
mov byte [esp + 0x9f], 0xe8
mov byte [esp + 0xa0], 0x6a
mov byte [esp + 0xa1], 0xfc
mov byte [esp + 0xa2], 0xee
mov byte [esp + 0xa3], 0xde
mov dword [esp + 0x24], ebx
call sub.Storm.dll_Ordinal_279
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00401b60
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ba0
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x20]
call fcn.00401cc0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401248
push ebx
push 0x8a
push str..War3EXE.cpp
push eax
call sub.Storm.dll_Ordinal_403
mov eax, 0x14
lea edx, [esp + 0x90]
lea esi, [esp + 0x7c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x401270
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x401258
cmp eax, ebx
je 0x4012cd
movzx edi, byte [edx]
movzx ecx, byte [esi]
sub ecx, edi
jne 0x4012bf
sub eax, 1
add edx, 1
add esi, 1
cmp eax, ebx
je 0x4012cd
movzx edi, byte [edx]
movzx ecx, byte [esi]
sub ecx, edi
jne 0x4012bf
sub eax, 1
add edx, 1
add esi, 1
cmp eax, ebx
je 0x4012cd
movzx edi, byte [edx]
movzx ecx, byte [esi]
sub ecx, edi
jne 0x4012bf
sub eax, 1
add edx, 1
add esi, 1
cmp eax, ebx
je 0x4012cd
movzx edx, byte [edx]
movzx ecx, byte [esi]
sub ecx, edx
je 0x4012cd
cmp ecx, ebx
mov eax, 1
jg 0x4012cf
or eax, 0xffffffff
jmp 0x4012cf
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x401303
push str.blizzard.ax
call edi
mov esi, eax
test esi, esi
je 0x401303
push str.DllRegisterServer
push esi
call ebx
test eax, eax
je 0x401300
call eax
push esi
call ebp
push str.Game.dll
call edi
mov esi, eax
test esi, esi
jne 0x401329
push 0x10
push str.Error
push str.Couldnt_open_Game.dll.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x14]
jmp 0x401358
push str.GameMain
push esi
call ebx
test eax, eax
jne 0x40134e
push 0x10
push str.Error
push 0x456b20
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [esp + 0x14]
jmp 0x401353
push esi
call eax
mov edi, eax
push esi
call ebp
mov eax, edi
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401d9e
add esp, 0x98
ret 0x10
Function at 0x401b60
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x401d9e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46304c]
jne 0x401da8
repz ret
jmp fcn.004021e6

Function at 0x403da0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45260e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46304c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
lea ebp, [esi + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [ebp], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0xffffffff
push 0x10
lea ebx, [esi + 0x18]
push 0x10
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esi], vtable.CDataStoreChunked.0
call sym.War3.exe_A2
mov dword [ebx], vtable.TExtraInstanceRecycler_struct_CDataStoreChunked::Chunk_.0
mov dword [ebx + 0x18], 0xffffffff
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea eax, [esi + 0x54]
mov dword [eax + 4], edi
mov dword [eax], eax
not eax
mov dword [esi + 0x50], 4
mov dword [esi + 0x58], eax
push edi
push 0x1d2
push str..CDataStoreChunked.cpp
push ebx
mov byte [esp + 0x30], 2
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
call sub.Storm.dll_Ordinal_401
push 8
push 0x1d5
mov dword [esi + 0x3c], eax
push str..CDataStoreChunked.cpp
lea eax, [ebx + ebx]
push eax
call sub.Storm.dll_Ordinal_401
cmp dword [ebp], 0xffffffff
mov dword [esi + 0x40], eax
je 0x403e83
mov edx, dword [esi]
push ebp
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x404210
Capabilities:
Check os version

Disassembly:
call sym.War3.exe_Fx
mov dword [0x466514], edx
mov dword [0x466510], eax
mov edx, 2
xor ecx, ecx
jmp sym.War3.exe_HQ
Function at 0x411de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
fldz
sub esp, 8
fld dword [0x4676dc]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x411e88
push ebx
fstp st(0)
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x5f5e100
call edi
mov ebx, eax
call edi
cmp ebx, eax
jne 0x411e25
test esi, esi
je 0x411e73
sub esi, 1
call edi
cmp ebx, eax
je 0x411e14
test esi, esi
je 0x411e73
call fcn.00411dd0
push 0x3e8
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00411dd0
sub eax, esi
sbb edx, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
fild qword [esp + 0xc]
pop edi
pop esi
pop ebx
fdivr qword [0x4574b0]
fstp dword [0x4676dc]
fld dword [0x4676dc]
fstp dword [0x46363c]
fld dword [0x4676dc]
add esp, 8
ret
fld dword [0x46363c]
pop edi
pop esi
fstp dword [0x4676dc]
fld dword [0x4676dc]
pop ebx
add esp, 8
ret

Function at 0x412240
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov esi, 0x46b700
mov dword [esp + 0x10], 0x467700
mov edi, dword [esp + 0x10]
xor eax, eax
cmp ebp, 1
sete al
mov ebx, 0x200000
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi], ebx
mov dword [esi], eax
add esi, 4
add edi, 4
add ebx, 0x200000
sub dword [esp + 0x14], 1
jne 0x412273
mov eax, dword [esp + 0x10]
add eax, 0x2000
mov dword [ebp*4 + 0x4676f8], 0x7ff
mov dword [ebp*4 + 0x4676f0], 0x3ff
mov dword [ebp*4 + 0x4676e8], 0x400
add ebp, 1
cmp eax, 0x46b700
mov dword [esp + 0x10], eax
jl 0x412256
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 1
cmp eax, dword [esp + 0x30]
pop edi
sbb ecx, ecx
pop esi
and ecx, 0xf9f
add ecx, eax
pop ebp
mov dword [0x46366c], ecx
pop ebx
add esp, 0x30
jmp 0x444850
cmp dword [0x470b94], 0
jne 0x44487e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x470b98], eax
je 0x44487e
push str.TryEnterCriticalSection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x470b94], eax
ret

Function at 0x412890
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov ecx, dword [esp + 0x20]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, edx
add esp, 0x1c
ret 8

Function at 0x416c80
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
push 0
push esi
call edi
push 2
push esi
call edi
pop edi
pop esi
ret
Function at 0x41b893
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
lea edx, [esi + 0x48]
lea ecx, [esi + 0x44]
mov dword [esi + 0x40], 1
call sym.War3.exe_GT
mov ecx, dword [esi + 0x14]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
lea ecx, [esp + 0x18]
call sym.War3.exe_GX
mov edx, dword [esi + 0x14]
push 0
lea ecx, [esp + 8]
call sym.War3.exe_GX
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x4c], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
sub dword [esi + 0x50], eax
sub dword [esi + 0x58], eax
mov eax, dword [esp + 0x14]
sub dword [esi + 0x4c], eax
sub dword [esi + 0x54], eax
mov ecx, esi
pop esi
add esp, 0x20
jmp fcn.00419750

Function at 0x41c670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452d3b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46304c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c410
mov ecx, dword [0x46ffe4]
push bind
push ecx
lea edx, [esi + 8]
push edx
call sub.Storm.dll_Ordinal_501
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [esi + 4], eax
mov al, byte [esp + 0x1c]
mov byte [esi], al
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8

Function at 0x41d1b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sym.War3.exe_EJ
mov ebx, eax
lea esi, [ebx + 1]
cmp esi, dword [0x46ffd0]
jbe 0x41d204
cmp esi, dword [0x46ffcc]
jbe 0x41d204
mov ecx, dword [0x46ffd8]
test ecx, ecx
jne 0x41d1e7
push esi
mov ecx, 0x46ffcc
call fcn.00417cf0
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov edi, esi
test edx, edx
je 0x41d1f9
sub ecx, edx
add ecx, esi
mov edi, ecx
push edi
mov ecx, 0x46ffcc
call fcn.00417d50
mov dword [0x46ffd0], esi
lea esi, [ebx + ebx + 2]
cmp esi, dword [0x46ffe0]
jbe 0x41d252
cmp esi, dword [0x46ffdc]
jbe 0x41d252
mov ecx, dword [0x46ffe8]
test ecx, ecx
jne 0x41d235
push esi
mov ecx, 0x46ffdc
call fcn.00417a00
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov edi, esi
test edx, edx
je 0x41d247
sub ecx, edx
add ecx, esi
mov edi, ecx
push edi
mov ecx, 0x46ffdc
call fcn.00417a60
mov dword [0x46ffe0], esi
or dword [ebp + 4], 0x80
mov eax, dword [0x46ffe0]
mov ecx, dword [0x46ffe4]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
and dword [ebp + 4], 0xffffff7f
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004183b0
Function at 0x420de0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x470010]
mov edx, dword [0x470014]
mov ecx, eax
sub esp, 0x18
or ecx, edx
jne 0x420ec6
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
cmp esi, 0x7fffffff
je 0x420e1f
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call sym.War3.exe_Fz
mov ebp, edx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub esi, 0x7fffffff
neg esi
sbb esi, esi
and esi, 0xfffffe3e
add esi, 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0x7fffffff
je 0x420e6a
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call sym.War3.exe_Fz
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
sub esi, ebx
push eax
sbb edi, ebp
push edi
push esi
call fcn.004519f0
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
sbb esi, dword [esp + 0x24]
push esi
push ecx
push edx
push eax
call fcn.00451940
pop edi
pop esi
pop ebp
mov dword [0x470010], eax
mov dword [0x470014], edx
pop ebx
add esp, 0x18
ret

Function at 0x421550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
xor edx, edx
mov ecx, 0x46fff0
call sym.War3.exe_H2
mov esi, eax
test esi, esi
je 0x4215a9
push edi
mov ecx, esi
call fcn.00421340
mov edx, esi
mov ecx, 0x46fff0
call sym.War3.exe_H2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x14
jae 0x4215a8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x46fff0], 0
je 0x4215a7
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0x14
jb 0x421591
pop ebx
pop edi
pop esi
ret