joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a80
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 0x4029a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, 0x4560a8
mov dword [ebp - 8], 0x4580a8
lea esp, [esp]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
xor eax, eax
cmp ecx, 1
sete al
mov edi, 0x200000
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x10], eax
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
push 0
push 0
push ecx
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], edi
add edi, 0x200000
add esi, 4
add ebx, 4
dec eax
mov dword [ebp - 0xc], eax
jne 0x4029e0
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x45609c], 0x7ff
mov dword [eax*4 + 0x45608c], 0x3ff
mov dword [eax*4 + 0x456094], 0x400
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 0x2000
cmp eax, 0x45c0a8
mov dword [ebp - 8], eax
jl 0x4029c0
lea edx, [ebp - 0x34]
xor eax, eax
mov ecx, 9
lea edi, [ebp - 0x34]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
mov eax, 1
cmp eax, esi
sbb ecx, ecx
and ecx, 0xf9f
inc ecx
mov dword [0x4525c4], ecx
call fcn.0042f210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
xor edx, edx
add esp, 0x18
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8

Function at 0x407b80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call sym.War3.exe_EJ
lea esi, [eax + 1]
cmp esi, dword [0x45c0fc]
jbe 0x407bd4
cmp esi, dword [0x45c0f8]
jbe 0x407bd4
mov ecx, dword [0x45c104]
test ecx, ecx
jne 0x407bb7
push esi
mov ecx, 0x45c0f8
call fcn.0040faa0
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov edi, esi
test edx, edx
je 0x407bc9
sub ecx, edx
add ecx, esi
mov edi, ecx
push edi
mov ecx, 0x45c0f8
call fcn.0040fae0
mov eax, dword [0x45c110]
mov dword [0x45c0fc], esi
add esi, esi
cmp esi, eax
jbe 0x407c18
cmp esi, dword [0x45c10c]
jbe 0x407c18
mov eax, dword [0x45c118]
test eax, eax
jne 0x407c01
push esi
mov ecx, 0x45c10c
call fcn.0040f860
push eax
push esi
mov ecx, 0x45c10c
call fcn.0040f8a0
push eax
mov ecx, 0x45c10c
call fcn.0040f8c0
mov dword [0x45c110], esi
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 0x14]
or edi, 0x80
mov dword [ebx + 4], edi
mov eax, dword [0x45c110]
mov ecx, dword [0x45c114]
push eax
push ecx
push edx
call dword [sym.imp.user32.dll_GetWindowTextA]
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and eax, 0xffffff7f
mov dword [ebx + 4], eax
call fcn.00407c60
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408d40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp edx, 5
ja case.default.0x408d4b
jmp dword [edx*4 + 0x408dc0]
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0xb0
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je case.default.0x408d4b
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0xc6
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e5f0
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 0x410190
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45c198]
mov edx, dword [0x45c19c]
mov ecx, eax
or ecx, edx
jne 0x410276
push ebx
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 0x4101d1
push esi
call edi
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
call sym.War3.exe_Fz
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x18]
push edx
mov ebx, eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
xor eax, eax
cmp esi, 0x7fffffff
sete al
dec eax
and eax, 0xfffffe3e
add eax, 0x1f4
push eax
call dword [sym.imp.kernel32.dll_Sleep]
call edi
push eax
call dword [sym.imp.kernel32.dll_GetThreadPriority]
cmp eax, 0x7fffffff
je 0x41021c
push eax
call edi
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
call sym.War3.exe_Fz
mov edi, edx
lea edx, [ebp - 8]
push edx
mov esi, eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
sub esi, ebx
sbb edi, eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edi
push esi
call fcn.00449190
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
sub ecx, ebx
sbb esi, edi
push esi
push ecx
push edx
push eax
call fcn.004490e0
pop edi
pop esi
mov dword [0x45c198], eax
mov dword [0x45c19c], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410b90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x45c180
call sym.War3.exe_H2
mov esi, eax
test esi, esi
je 0x410be7
mov ecx, esi
call fcn.004108f0
mov edx, esi
mov ecx, 0x45c180
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 0x410be7
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x45c180]
test eax, eax
je 0x410be7
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0x14
jb 0x410bd1
pop edi
pop esi
pop ebx
ret

Function at 0x410c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
push edx
push esi
mov edi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
call sub.storm.dll_Ordinal_501
mov dl, 0x2e
mov ecx, esi
call sub.storm.dll_Ordinal_569
test eax, eax
je 0x410cb7
mov byte [eax], 0
push ebx
push str..dll
push esi
call sub.storm.dll_Ordinal_503
lea eax, [ebp - 8]
push eax
push 0
push esi
push edi
call sub.storm.dll_Ordinal_268
test eax, eax
jne 0x410cde
mov esi, 2
jmp 0x410d70
mov ecx, dword [ebp - 8]
push 0
push ecx
call sub.storm.dll_Ordinal_265
push 0
push 0x2c
mov edi, eax
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push edi
call sub.storm.dll_Ordinal_401
mov ebx, eax
test ebx, ebx
jne 0x410d09
mov dword [ebp - 4], 3
jmp 0x410d5a
mov edx, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push edx
call sub.storm.dll_Ordinal_269
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410d53
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 0xc], edi
je 0x410d5a
mov dword [ebp - 4], 5
test ebx, ebx
je 0x410d6d
push 0
push 0x4e
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push ebx
call sub.storm.dll_Ordinal_403
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x410d7d
push eax
call sub.storm.dll_Ordinal_253
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push 0
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
call sub.storm.dll_Ordinal_266
test eax, eax
jne 0x410dc7
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp - 4]
push ebx
push edi
lea ecx, [ebp - 0xc]
push ecx
push edx
mov byte [ebp - 0x118], 0
call sub.storm.dll_Ordinal_251
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x410df3
cmp eax, 5
jae 0x410df3
mov ebx, 4
jmp 0x410e9d
mov ecx, dword [ebp - 4]
push 0x104
lea eax, [ebp - 0x118]
push eax
mov edx, esi
call fcn.00410c80
mov ebx, eax
cmp ebx, 1
mov dword [ebp - 0x10], ebx
jne 0x410e9d
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x410e31
mov ebx, 2
jmp 0x410e92
push str.CheckRevision
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
jne 0x410e48
mov ebx, 2
jmp 0x410e92
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
mov esi, ecx
jne 0x410e56
mov esi, 0x45c150
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x410e62
mov edx, 0x45c150
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x410e6e
mov ecx, 0x45c150
mov ebx, dword [ebp + 0x10]
push ebx
jmp 0x49510d
test edi, edi
je 0x410e9d
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
test eax, eax
je 0x410eaa
push eax
call sub.storm.dll_Ordinal_252
push esi
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
call esi
mov al, byte [ebp - 0x118]
test al, al
je 0x410ec6
lea edx, [ebp - 0x118]
push edx
call esi
pop edi
jmp 0x49512e
Function at 0x410ee0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0
mov edi, ecx
push 0
push edi
mov esi, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
call sub.storm.dll_Ordinal_266
test eax, eax
jne 0x410f16
pop edi
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov byte [ebp - 0x118], 0
call sub.storm.dll_Ordinal_251
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410f42
cmp eax, 5
jae 0x410f42
mov dword [ebp - 4], 4
jmp 0x410fcd
mov ecx, dword [ebp - 8]
push 0x104
lea eax, [ebp - 0x118]
push eax
mov edx, edi
call fcn.00410c80
cmp eax, 1
mov dword [ebp - 4], eax
jne 0x410fcd
push ebx
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x410fb7
push str.ExtraWork
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x410fb7
xor eax, eax
mov ecx, 0x401
mov edi, esi
rep stosd dword es:[edi], eax
mov word [esi], 2
mov word [esi + 2], 4
call sub.storm.dll_Ordinal_294
xor edx, edx
mov dx, ax
mov ecx, esi
mov dword [esi + 4], edx
call ebx
test eax, eax
mov edi, dword [ebp - 0xc]
jne 0x410fbe
mov dword [ebp - 4], 2
test edi, edi
pop ebx
je 0x410fca
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test eax, eax
je 0x410fda
push eax
call sub.storm.dll_Ordinal_252
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
push edi
call esi
mov al, byte [ebp - 0x118]
test al, al
je 0x410ff6
lea eax, [ebp - 0x118]
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411450
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push edi
xor eax, eax
mov ecx, 0x2b
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
pop edi
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 9
jne 0x41149b
and eax, 0xfc00
cmp eax, 0xc00
mov eax, 0x1e0
je 0x4114a1
mov eax, dword [ebp - 0xac]
mov esp, ebp
pop ebp
ret

Function at 0x4120e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45c20c]
test eax, eax
push esi
mov dword [ebp - 4], ecx
jne 0x41212c
mov esi, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x45c208
call esi
test eax, eax
jne 0x4120f7
mov eax, dword [0x45c20c]
test eax, eax
jne 0x412122
push 0x45c210
mov dword [0x45c20c], 0x45c210
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [0x45c208], 0
mov eax, dword [0x45c20c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x45c240]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [0x45c240], eax
jne 0x412153
call sub.kernel32.dll_TlsAlloc
mov dword [0x45c230], eax
mov ecx, dword [0x45c230]
call fcn.0042f5b0
mov esi, eax
test esi, esi
je 0x412181
mov ecx, esi
call fcn.00412d20
mov ecx, esi
call fcn.00412d20
push 0
push 0xffffffffffffffff
push 0x452480
push esi
call sub.storm.dll_Ordinal_403
push 8
push 0xe5
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsCall.cpp
push 0x189c
call sub.storm.dll_Ordinal_401
test eax, eax
je 0x4121ac
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, eax
jmp 0x4121ae
xor esi, esi
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea edx, [esi + 0xc]
push edx
mov dword [esi + 8], eax
call edi
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str._s___u_
lea edx, [esi + 0x181c]
push 0x80
push edx
call sub.storm.dll_Ordinal_578
mov ecx, dword [0x45c230]
add esp, 0x14
mov edx, esi
call fcn.0042f5e0
cmp dword [esi], 0
pop edi
je 0x412231
push 0xffffffffffffffff
mov ecx, esi
call fcn.00412cf0
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [0x45c238]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov dword [eax + 4], esi
mov edx, dword [0x45c20c]
push edx
mov dword [0x45c238], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412bd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45c240]
test eax, eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
je 0x412cd5
mov ecx, dword [0x45c230]
call fcn.0042f5b0
test eax, eax
je 0x412cd5
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov ebx, dword [eax + 0x1818]
je 0x412cd5
mov edx, dword [0x45317c]
test edx, edx
je 0x412cd5
mov edx, dword [eax + 0x10]
test edx, edx
je 0x412cd5
mov edx, dword [ecx + 0xc]
mov eax, edx
xor eax, esi
and eax, 0xff
mov eax, dword [eax*4 + 0x44b2a0]
shr edx, 8
xor eax, edx
mov edx, esi
mov esi, eax
shr edx, 8
xor esi, edx
shr eax, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x44b2a0]
xor esi, eax
shr edx, 8
mov eax, esi
xor eax, edx
and eax, 0xff
push edi
mov edi, dword [eax*4 + 0x44b2a0]
xor eax, eax
mov al, dh
shr esi, 8
xor edi, esi
mov edx, edi
and edx, 0xff
shr edi, 8
or bl, 0x80
xor eax, edx
mov eax, dword [eax*4 + 0x44b2a0]
mov edx, dword [ecx + 0x4524]
xor eax, edi
mov dword [ecx + 0xc], eax
mov eax, edx
and eax, 0xff
inc edx
mov dword [ecx + 0x4524], edx
lea edx, [ecx + eax*4]
lea eax, [eax + edx + 0x4020]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov byte [eax + 4], bl
mov eax, dword [ecx + 0x4520]
mov esi, dword [ecx + 0x4524]
lea edx, [eax + 0x101]
cmp esi, edx
pop edi
jne 0x412cd5
inc eax
mov dword [ecx + 0x4520], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4131f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.kernel32.dll_GetVersionExA]
lea eax, [ebp - 0x9c]
push eax
xor esi, esi
mov dword [ebp - 0x9c], 0x9c
call edi
test eax, eax
jne 0x413246
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 0x9c], 0x94
call edi
test eax, eax
jne 0x413246
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8c]
dec eax
je 0x4132a0
dec eax
jne 0x4132fd
mov eax, dword [ebp - 0x98]
cmp eax, 4
jne 0x41326e
mov esi, 6
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4132fd
mov eax, dword [ebp - 0x94]
test eax, eax
jne 0x41328e
mov esi, 7
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4132fd
mov esi, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x98], 4
jne 0x4132fd
mov eax, dword [ebp - 0x94]
test eax, eax
jne 0x4132d3
mov al, byte [ebp - 0x87]
cmp al, 0x43
mov esi, 1
je 0x4132c6
cmp al, 0x42
jne 0x4132fd
mov esi, 2
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x4132f3
cmp byte [ebp - 0x87], 0x41
mov esi, 3
jne 0x4132fd
mov esi, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x4132fd
mov esi, 5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4133a0
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edi
mov edi, ecx
test edi, edi
je 0x41345e
cmp byte [edi], 0
je 0x41345e
call dword [sym.imp.user32.dll_GetActiveWindow]
mov ebx, eax
test ebx, ebx
je 0x41345e
push 1
push 0
push 0
push edi
push str.open
push ebx
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jbe 0x4133f1
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x453214
push str.8BLZ2112.HTM
call dword [sym.imp.msvcrt.dll_fopen]
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 0
push str.8BLZ2112.HTM
call dword [sym.imp.shell32.dll_FindExecutableA]
mov esi, eax
cmp esi, 0x20
jbe 0x413441
push 1
push 0
push edi
lea ecx, [ebp - 0x100]
push ecx
push str.open
push ebx
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov esi, eax
push str.8BLZ2112.HTM
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov edx, 0x20
cmp edx, esi
pop esi
sbb eax, eax
pop edi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4135e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.user32.dll_GetActiveWindow]
push eax
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x4135f8
pop edi
pop esi
pop ebx
ret
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x413612
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_GlobalSize]
push 0
push 0x34
mov edi, eax
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsClipboard.cpp
push edi
call sub.storm.dll_Ordinal_401
push esi
mov ebx, eax
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
jne 0x413643
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push edi
push eax
push ebx
call sub.storm.dll_Ordinal_501
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x413a30
Capabilities:
Get file attributes

Disassembly:
test ecx, ecx
jne 0x413a3e
push 0x57
call sub.storm.dll_Ordinal_465
xor eax, eax
ret
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
ret

Function at 0x413a50
Capabilities:
Set file attributes

Disassembly:
test ecx, ecx
jne 0x413a5e
push 0x57
call sub.storm.dll_Ordinal_465
xor eax, eax
ret
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret
Function at 0x413d50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
push edi
push accept
push ecx
lea eax, [ebp - 0x35c]
push eax
mov esi, edx
call sub.storm.dll_Ordinal_501
lea ecx, [ebp - 0x35c]
call sym.War3.exe_HW
push accept
push esi
lea ecx, [ebp - 0x35c]
push ecx
call sub.storm.dll_Ordinal_503
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
je 0x413e88
push ebx
mov edi, edi
push accept
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x110]
push edx
call sub.storm.dll_Ordinal_501
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
xor eax, eax
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x238]
xor ebx, ebx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x258]
or ecx, ebx
test al, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0x114], ebx
je 0x413e08
mov dword [ebp - 0x114], 0x10
test al, 1
je 0x413e13
or dword [ebp - 0x114], 1
mov ecx, eax
and ecx, 2
je 0x413e21
or dword [ebp - 0x114], 2
and eax, 4
je 0x413e2d
or dword [ebp - 0x114], 4
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x413e38
test ecx, ecx
jne 0x413e53
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x413e43
test eax, eax
jne 0x413e53
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
call dword [ebp + 8]
test eax, eax
jne 0x413e7b
lea ecx, [ebp - 0x258]
push ecx
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x413db0
push esi
call dword [sym.imp.kernel32.dll_FindClose]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
mov edi, 1
call dword [sym.imp.kernel32.dll_FindClose]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x413ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push accept
mov esi, edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x413ecd
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push esi
lea eax, [ebp - 0xc]
push eax
push 0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push 0x45c150
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 1
je 0x413f08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x413f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push accept
mov esi, edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x413f70
push esi
call sub.storm.dll_Ordinal_506
mov ecx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push 0
push 0x45c150
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret