joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a088
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x44a0ad
cmp dword [ebx + 4], 0xfffffffe
jne 0x44a0ad
or eax, 0xffffffff
jmp 0x44a1e5
test byte [ebx + 8], 8
je 0x44a11a
cmp dword [ebx + 4], 0xffffffff
jne 0x44a11a
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.0044a00c
pop ecx
mov edi, eax
test edi, edi
je 0x44a102
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x44a1e5
call fcn.0044b9ec
test eax, eax
jne 0x44a112
xor eax, eax
jmp 0x44a1e5
or eax, 0xffffffff
jmp 0x44a1e5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x44a127
cmp eax, 0xfffffffe
jne 0x44a14e
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x44a15e
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x44a174
call fcn.0044b9ec
test eax, eax
jne 0x44a16f
xor eax, eax
jmp 0x44a1e5
or eax, 0xffffffff
jmp 0x44a1e5
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x44a188
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x44a11a
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.dll_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b3c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0044f3d0
pop ecx
mov ebx, eax
test eax, eax
jne 0x44b3ec
xor eax, eax
jmp 0x44b495
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x44b40d
cmp esi, 0x104
jb 0x44b418
push ebx
call fcn.0044f3e0
pop ecx
xor eax, eax
jmp 0x44b495
cmp byte [ebx + 1], 0x3a
jne 0x44b448
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x44b448
push ebx
call fcn.0044f3e0
pop ecx
xor eax, eax
jmp 0x44b495
inc esi
test edi, edi
je 0x44b48b
cmp esi, dword [ebp + 0x10]
jbe 0x44b45d
push ebx
call fcn.0044f3e0
pop ecx
xor eax, eax
jmp 0x44b495
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0044f3e0
pop ecx
mov eax, edi
jmp 0x44b495
push esi
push ebx
call fcn.0044f3f0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x44b49c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x44b4e2
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x44b4d0
cmp eax, dword [ebp + 0x10]
jle 0x44b56b
call fcn.0044f4c0
mov dword [eax], 8
xor eax, eax
jmp 0x44b5d8
cmp dword [0x45c4f8], 1
jne 0x44b527
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x44b56b
xor eax, eax
jmp 0x44b5d8
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x44b567
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x44b56b
xor eax, eax
jmp 0x44b5d8
lea edx, [ebp - 0x10c]
push edx
call fcn.00444e90
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x44b58c
call fcn.0044f4c0
mov dword [eax], 0x22
xor eax, eax
jmp 0x44b5d8
test edi, edi
jne 0x44b5af
mov edx, dword [ebp + 0x10]
push edx
call fcn.0044f3d0
pop ecx
mov edi, eax
test eax, eax
jne 0x44b5af
call fcn.0044f4c0
mov dword [eax], 8
xor eax, eax
jmp 0x44b5d8
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44baa0
call fcn.0044ba0c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x44babc
test bl, 1
je 0x44babc
call fcn.0044f4c0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x44bbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0044b5e0
test byte [ebp + 0xd], 0xc0
jne 0x44bc14
mov eax, dword [0x459ce0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x44bc21
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x44bc4e
je 0x44bc60
sub ecx, 0x100
je 0x44bc6e
sub ecx, 0x100
je 0x44bc75
sub ecx, 0x100
je 0x44bc67
jmp 0x44bc7c
sub ecx, 0x600
je 0x44bc75
sub ecx, 0x100
je 0x44bc60
jmp 0x44bc7c
mov edi, 1
jmp 0x44bc81
mov edi, 2
jmp 0x44bc81
mov edi, 4
jmp 0x44bc81
mov edi, 5
jmp 0x44bc81
mov edi, 3
test byte [ebp + 0xd], 1
je 0x44bca8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x45a230]
test al, 0x80
je 0x44bca1
mov ebx, 0x80
jmp 0x44bcba
mov ebx, 1
jmp 0x44bcba
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44bcba
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x44bccc
je 0x44bcd5
dec eax
je 0x44bcde
jmp 0x44bce7
mov dword [ebp - 4], 0x80000000
jmp 0x44bcf6
mov dword [ebp - 4], 0x40000000
jmp 0x44bcf6
mov dword [ebp - 4], 0xc0000000
jmp 0x44bcf6
push 1
call fcn.0044b9a0
pop ecx
mov ebx, eax
jmp 0x44bde2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x44bd12
sub eax, 0x10
je 0x44bd19
sub eax, 0x10
je 0x44bd22
sub eax, 0x10
je 0x44bd2b
jmp 0x44bd2b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x44bd32
mov dword [ebp - 8], 1
jmp 0x44bd32
mov dword [ebp - 8], 2
jmp 0x44bd32
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x44bd9b
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x44bd90
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x44bd90
add ebx, 0xffffffb2
push ebx
call fcn.0044b9a0
pop ecx
mov ebx, eax
jmp 0x44bde2
mov edi, esi
push edi
call fcn.0044bb54
pop ecx
test eax, eax
je 0x44bdaf
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x44bdbb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0044b6e0
add esp, 8
mov ebx, eax
inc eax
jne 0x44bde2
push 4
call fcn.0044b9a0
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.0044b614
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f528
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x45ac40], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44f5e0
cmp byte [0x4521d6], 0
je 0x44f59a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0044eefc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44f583
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0044eefc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44f583
lea ebx, [ebp - 0x54]
jmp 0x44f584
inc ebx
call fcn.0044f4e0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x44f601
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x45ac44
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00444e90
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45ac47
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x44f601
cmp dword [0x45ac40], 0xffffffff
je 0x44f601
mov eax, dword [0x45ac40]
test eax, eax
je 0x44f601
cmp byte [eax], 0
je 0x44f601
push esi
push eax
call fcn.0044f690
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x15b2624
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
invalid
inc dword [edx - 0x30]
cmpsb byte cs:[esi], byte es:[edi]
push eax
and dword [edi + 0x51b63c23], 0x8d09276b
imul eax, dword [ecx + 0x1c04d489], 0x66
add dword [ebp - 0x3c654659], edi
dec eax
xor ecx, dword [edi - 0x4e]
mov bh, 0x75
mov eax, dword [edx - 0x132a7f95]
in al, dx
and eax, 0x62b178ff
and eax, eax
cmp eax, 0x7c47e2e8
pop ecx
ja 0x4010a9
ror dword [edi + ecx + 0x62], cl
daa
fadd dword [edi - 0x6b]
push es
test edx, ecx
xchg esi, eax
push edi
sbb edi, dword [edx - 0x5337bcd8]
in eax, dx
invalid
Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1c], 0xa
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], 0xa
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
jmp loc.00409000

Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4015ee
Capabilities:
Encode data using xor

Disassembly:
sal byte [edi + 0x6783e31d], 1
wait
pop ss
invalid
Function at 0x40148c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5083f8
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x40150c
arpl word [edx + esi], si
push 0xa017a710
xor byte [esp + 0x25], 0xe4
das
salc
out dx, eax
or dword [eax], edi
adc al, 0xaa
leave
jbe 0x401521
mov bl, 0xbb
int3
sub byte [ebx + 0x5962719e], 0xd2
sbb dl, byte [ebx + 0x72c3091b]
hlt
push ecx
or dword [ecx + 0x7c], edx
xchg di, ax
inc ebx
sar dword [edx], cl
in eax, dx
cmp ch, ch
xor eax, 0xe407fb4
jnp 0x40156f
std
sbb dh, byte [ecx + 0x77]
cld
mov cs, word [edi]
add edx, dword [edx]
dec edi
mov dword cs:[0xb037f3bd], eax
sub ah, byte [ebx + 0x337a5247]
push 0x6d
nop
jmp [ecx + 0x6d]
retf 0xc066
sbb eax, 0x4298ecf2
add dword [edx], ebx
mov ah, 9
jnp 0x401558
fimul word [edx + 0x187f978]
mov bh, byte [eax - 7]
xchg dword [ecx], eax
pop eax
jg 0x401529
loope 0x401579
jo 0x4015d8
pop ecx
mov bh, 0x59
push ss
pop esp
sub bl, byte [edx + 8]
mul byte [eax + 0x69]
xchg ebp, eax
or esp, dword [edi + 0x23]
mov byte [0xb534b609], al
imul edx, dword [ebp - 0x5ddc98f5], 0xb534b609
jnp 0x4015a4
jno 0x401590
dec esi
xor cl, byte [edi]
pop edx
cwde
out dx, eax
insb byte es:[edi], dx
sub eax, 0xd3bf1f70
cli
out 0xad, eax
inc ebp
jmp 0x119e123c
inc ebp
test bh, bl
mov ch, 0x65
jae 0x401603
push ebx
xor byte [edi + 0x5c], dh
invalid
xor cl, al
int 0xec
jmp 0xb94f5ff4
Function at 0x473430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c84c
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5feb58]
cmp eax, dword [ecx + 4]
jle 0x4734d0
push 0x5feb58
call fcn.00536f3d
add esp, 4
cmp dword [0x5feb58], 0xffffffff
jne 0x4734d0
mov dword [ebp - 4], 0
mov dword [0x5feb5c], 0
mov dword [0x5feb60], 0
call fcn.00469290
push 0x57f910
mov dword [0x5feb5c], eax
call fcn.00536d7f
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5feb58
call fcn.00536ef3
add esp, 4
cmp dword [0x5feb60], 0
jne 0x4734de
call fcn.00473210
cmp dword [edi + 0x10], 0
lea esi, [edi + 0x10]
je 0x473556
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4734f1
mov eax, dword [edi]
push 0xb
push str.SystemRoot
push eax
call fcn.0055e802
add esp, 0xc
test eax, eax
jne 0x473560
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0054e940
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473535
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push 0xb
push ecx
mov ecx, edi
call fcn.00478100
mov eax, 1
jmp 0x47362c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x47356a
mov eax, dword [edi]
push 4
push str.___
push eax
call fcn.0055e802
add esp, 0xc
test eax, eax
jne 0x4735b2
mov eax, dword [esi]
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x473592
mov edi, dword [edi]
sub eax, ecx
mov dword [esi], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + ecx*2]
push eax
push edi
call fcn.0054eaa0
add esp, 0xc
mov eax, 1
jmp 0x47362c
mov eax, dword [0x5feb5c]
mov esi, dword [eax]
cmp esi, eax
je 0x47362a
nop dword [eax]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4735cb
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4735d5
mov ecx, dword [edi]
push dword [esi + 0x20]
push eax
push ecx
call fcn.0055e802
add esp, 0xc
test eax, eax
je 0x473647
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x47360c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x473608
cmp esi, dword [eax + 8]
jne 0x473608
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4735f8
mov esi, eax
jmp 0x473622
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x473622
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x473616
cmp esi, dword [0x5feb5c]
jne 0x4735c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
add esi, 0x28
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x473658
mov esi, dword [esi]
push ecx
push esi
push eax
push ecx
mov ecx, edi
call fcn.00478100
mov eax, 1
jmp 0x47362c
Function at 0x10001490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
je 0x1000149f
xor eax, eax
pop ebp
ret 0xc
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1000157b
push str.NtQueryInformationThread
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateThreadEx
push edi
mov dword [0x1001b31c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.M.U.G.E.N:_System_Error
push dword [0x1001b32c]
mov dword [0x1001b320], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x1001b320], 0
je 0x10001531
push 0
push 0
push 0
push 0
push 4
push 0
push 0x100012d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0
push 0x1fffff
push 0x1001b324
call dword [0x1001b320]
call fcn.10001100
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0x86
push 1
push 1
push 1
push 1
push 0
push dword [0x1001b32c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.M.U.G.E.N_Error
push str.Error_message:_Critical_function_not_found_in_the_core_library._n_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x100015be
cmp eax, 2
je 0x100015be
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0x86
push 1
push 1
push 1
push 1
push 0
push dword [0x1001b32c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.M.U.G.E.N_Error
push str.Error_message:_Couldnt_load_the_ntdll_library._n_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x100015be
cmp eax, 2
je 0x100015be
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000a864
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000a901
push ebx
push esi
call fcn.1000a82d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000a776
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a8ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a900
push edi
push eax
call fcn.10007670
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a8ce
call fcn.10007636
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a8ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a776
add esp, 0x20
test eax, eax
jne 0x1000a8ed
push edi
call fcn.10007636
jmp 0x1000a8f5
push ebx
call fcn.10007636
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000ab6c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b60
push 0x10014b58
push str.FlsAlloc
push 0x1e
call fcn.1000aa8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000aba0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001316c]
call esi
jmp 0x1000aba6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000abea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b70
push 0x10014b68
push str.FlsGetValue
push 0x20
call fcn.1000aa8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ac21
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001316c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]