joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e210
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x451c14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
cmp eax, edx
jne 0x40cb75
mov dword [ebp - 0x1c], 0x57
push 0x44d030
lea eax, [ebp - 0x1c]
push eax
call fcn.0042903a
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 0x14]
push esi
push eax
mov eax, dword [ebp + 0x18]
push eax
push edx
mov edx, dword [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40cbaa
cmp eax, dword [ebp + 8]
je 0x40cbaa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db10
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43e710
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x40dc5e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db60
sub eax, edx
sar eax, 1
je 0x40dc5e
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00428ee0
push 0x3ff
push edi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00426b21
add esp, 0x1c
lea ecx, [ebp]
call fcn.0040f080
mov ecx, 0x446288
lea edx, [ebp]
call fcn.0040f230
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40dc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40dbfb
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x463520
call fcn.0040be20
add esp, 8
mov dword [ebp - 0x18], esi
push 0x44d030
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042903a
sub eax, 2
je 0x40dc50
sub eax, 3
je 0x40dc2b
sub eax, 0x1b
je 0x40dc3a
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x463520
call fcn.0040be20
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x40dca1
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.0040e510
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x40dca1
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x40dca1
mov eax, 0x57
jmp 0x40dca3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x40dcd0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e7c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a68
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 4], 0
test esi, esi
je 0x40df18
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dd22
sub eax, edx
sar eax, 1
je 0x40df18
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.00428ee0
add esp, 0xc
push 0x3ff
push esi
push 0x400
lea ecx, [ebp - 0x818]
push ecx
call fcn.00426b21
lea ecx, [ebp - 0x818]
call fcn.0040f080
mov ecx, 0x44630c
lea edx, [ebp - 0x818]
call fcn.0040f230
push 0x800
push 0
lea edx, [ebp - 0x1818]
push edx
call fcn.00428ee0
add esp, 0x1c
lea eax, [ebp - 0x818]
push eax
push str._s.
lea edx, [ebp - 0x1818]
call fcn.004059c0
add esp, 8
lea ecx, [ebp - 0x1a68]
push ecx
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
jmp 0x40ddd0
cmp esi, 0xffffffff
je 0x40dee7
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dde2
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x40de11
mov eax, 0x2e
cmp word [ebp - 0x1a3c], ax
jne 0x40de11
cmp word [ebp - 0x1a3a], ax
je 0x40deca
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40de20
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x40de42
cmp word [ebp - 0x1a3c], 0x2e
je 0x40deca
push 0x800
push 0
lea eax, [ebp - 0x1018]
push eax
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp - 0x1a3c]
push ecx
lea edx, [ebp - 0x818]
push edx
push 0x445094
lea edx, [ebp - 0x1018]
call fcn.004059c0
add esp, 0xc
test byte [ebp - 0x1a68], 0x10
je 0x40debf
test bl, bl
je 0x40debf
push ebx
lea eax, [ebp - 0x1018]
push eax
call fcn.0040dcd0
add esp, 8
mov edi, eax
mov dword [ebp - 0x1a6c], edi
test edi, edi
je 0x40deca
lea ecx, [ebp - 0x1018]
push ecx
push str.Delete_Directory_:__s_
mov ecx, edi
mov edx, 0x463520
call fcn.0040be20
add esp, 8
jmp 0x40deca
lea ecx, [ebp - 0x1018]
call fcn.0040db10
lea edx, [ebp - 0x1a68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ddd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40df0f
lea ecx, [ebp - 0x818]
push ecx
call fcn.0040df90
add esp, 4
mov edi, eax
mov dword [ebp - 0x1a6c], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x40df67
mov eax, 0x57
jmp 0x40df69
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret
Function at 0x40e340
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00429090
push 0xffffffffffffffff
push 0x43e6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40e4cc
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e3a0
sub eax, edx
sar eax, 1
je 0x40e4cc
cmp esi, edi
je 0x40e4cc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e3c2
sub eax, edx
sar eax, 1
je 0x40e4cc
push 0x5c
push esi
call fcn.004275d1
add esp, 8
mov edi, eax
test edi, edi
jne 0x40e3fd
mov dword [ebp - 0x1c], 0x57
push 0x44d030
lea eax, [ebp - 0x1c]
push eax
call fcn.0042903a
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.00426b21
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.00428ee0
add esp, 0x1c
lea ecx, [ebp + 0x800]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40e455
push esi
push str._s.tmp
lea edx, [ebp + 0x800]
call fcn.004059c0
add esp, 8
push 1
lea eax, [ebp + 0x800]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x40e494
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40e488
push 4
push 0
lea ecx, [ebp + 0x800]
push ecx
call edi
jmp 0x40e49d
push 1
push esi
lea edx, [ebp + 0x800]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x40e4a7
Function at 0x40e510
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00429090
push 0xffffffffffffffff
push 0x43e670
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40e696
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e567
sub eax, edx
sar eax, 1
je 0x40e696
push 0x5c
push edi
call fcn.004275d1
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x40e696
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40e5cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x44d030
lea edx, [ebp - 0x1c]
push edx
call fcn.0042903a
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40e613
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x44d030
lea eax, [ebp - 0x24]
push eax
call fcn.0042903a
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x40e640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x44d030
lea edx, [ebp - 0x20]
push edx
call fcn.0042903a
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x40e667
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x44d030
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042903a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x40e671
Function at 0x40e6f0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00429090
push 0xffffffffffffffff
push 0x43e640
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp edx, edi
je 0x40e8d5
mov eax, edx
lea esi, [eax + 2]
jmp 0x40e760
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e760
sub eax, esi
sar eax, 1
je 0x40e8d5
push 0x3ff
push edx
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00426b21
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.00426fe5
add esp, 0x1c
cmp eax, edi
je 0x40e8a6
push 0x3ff
push eax
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.00426b21
push 0x3ff
push 0x4457a0
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.00427601
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00426fe5
add esp, 0x2c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, edi
cmp eax, edi
je 0x40e8a3
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40e800
sub ecx, esi
sar ecx, 1
je 0x40e8a3
push eax
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.0042797b
push 0x4457a0
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.0042797b
add esp, 0x18
push edi
lea edx, [ebp + 0x800]
push edx
call ebx
test eax, eax
je 0x40e882
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x40e86c
mov eax, dword [ebp + 0x1010]
push eax
push 1
lea edx, [ebp + 0x800]
call fcn.0040f4e0
add esp, 8
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00426fe5
add esp, 0xc
jmp 0x40e7f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40e86c
mov dword [ebp - 0x20], eax
push 0x44d030
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042903a
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x40e8b0
Function at 0x40eab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e600
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x451c14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40eb8d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40eaf5
sub eax, edx
sar eax, 1
je 0x40eb8d
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x40eb71
push esi
call fcn.00418971
add esp, 4
mov edi, eax
test edi, edi
je 0x40eb71
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x40eb68
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x4457a0
push edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x40eb68
push 0x34
mov edx, dword [ebp - 0x1c]
push edx
push 0x34
mov eax, dword [ebp + 8]
push eax
call fcn.004268d0
add esp, 0x10
mov dword [ebp - 0x14], 1
push edi
call fcn.0041896c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ebd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e310
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4004
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.00428ee0
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.00428ee0
add esp, 0x18
mov dword [ebp - 4], 0
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00426d67
lea edx, [ebp - 0x2014]
push edx
push 0x44507c
lea edx, [ebp - 0x4014]
call fcn.0040c5b0
add esp, 0x18
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret
Function at 0x40ee10
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x43e5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x11c
push esi
lea edx, [ebp]
push edx
call fcn.00428ee0
add esp, 0xc
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call edi
mov ebx, eax
test ebx, ebx
jne 0x40eea0
mov dword [ebp], 0x114
lea ecx, [ebp]
push ecx
call edi
test eax, eax
je 0x40f03e
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40eff4
mov ecx, 1
sub eax, ecx
je 0x40ef7f
sub eax, ecx
jne 0x40eff9
mov eax, dword [ebp + 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x40eed0
jmp dword [eax*4 + 0x40f064]
mov esi, 0x20001
jmp 0x40eff6
mov esi, 0x20002
jmp 0x40eff6
mov eax, dword [ebp + 8]
sub eax, 0
je 0x40ef38
sub eax, ecx
je 0x40eefb
sub eax, ecx
je 0x40ef05
mov esi, 0x40002
jmp 0x40eff6
mov esi, 0x40003
mov dword [ebp - 0x14], esi
cmp byte [0x463748], 0
je 0x40eff9
test ebx, ebx
je 0x40eff9
cmp byte [ebp + 0x11a], cl
jne 0x40eff9
mov esi, 0x40002
jmp 0x40eff6
mov esi, 0x40001
jmp 0x40eff6
cmp dword [ebp + 8], 0
je 0x40ef61
xor edx, edx
cmp byte [ebp + 0x11a], cl
setne dl
lea edx, [edx + edx + 0x100002]
mov esi, edx
jmp 0x40eff6
test ebx, ebx
je 0x40ef78
cmp byte [ebp + 0x11a], cl
jne 0x40eff9
mov esi, 0x100001
jmp 0x40eff6
mov esi, 0x100003
jmp 0x40eff6
mov esi, dword [ebp + 8]
test esi, esi
je 0x40efbc
cmp esi, 0xa
je 0x40ef9d
sub esi, 0x5a
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x10005
jmp 0x40eff6
push 0x446644
lea eax, [ebp + 0x14]
push eax
call fcn.004273ec
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x10004
jmp 0x40eff6
push 0x44663c
lea ecx, [ebp + 0x14]
push ecx
call fcn.004273ec
add esp, 8
test eax, eax
je 0x40efed
push 0x446640
lea edx, [ebp + 0x14]
push edx
call fcn.004273ec
add esp, 8
test eax, eax
je 0x40efed
mov esi, 0x10001
jmp 0x40eff6
mov esi, 0x10002
jmp 0x40eff6
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f005
mov ecx, dword [ebp + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f011
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x40f03c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x120
mov esp, ebp
pop ebp
ret
Function at 0x40fa50
Capabilities:
Create directory

Disassembly:
mov eax, 0x1018
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
cmp esi, ebx
push edi
mov dword [esp + 0x18], 0x5c
mov dword [esp + 0x14], ebx
je 0x40fbdd
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fa90
sub eax, edx
sar eax, 1
je 0x40fbdd
cmp byte [esp + 0x102c], bl
jne 0x40fade
push 0x5c
push esi
call fcn.004275d1
add esp, 8
cmp eax, ebx
je 0x40fbdd
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x828]
push 0x400
push eax
call fcn.00426b21
add esp, 0x10
jmp 0x40faf4
push esi
lea ecx, [esp + 0x824]
push 0x400
push ecx
call fcn.0042771d
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x828]
push ecx
call fcn.00426fe5
add esp, 0xc
cmp eax, ebx
je 0x40fbd9
push eax
lea edx, [esp + 0x24]
push 0x400
push edx
call fcn.0042771d
add esp, 0xc
push 0x4457a0
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.0042797b
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00426fe5
add esp, 0xc
cmp eax, ebx
je 0x40fbd7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40fb70
sub ecx, esi
sar ecx, 1
je 0x40fbd7
push eax
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.0042797b
add esp, 0xc
push 0x4457a0
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.0042797b
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
jne 0x40fbc0
call ebp
cmp eax, 0xb7
jne 0x40fbdd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00426fe5
add esp, 0xc
cmp eax, ebx
jne 0x40fb67
mov bl, 1
mov al, bl
jmp 0x40fbdf
xor al, al
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042683e
add esp, 0x1018
ret 4
Function at 0x4100a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x100ac], ebx
push edi
mov dword [esp + 8], ebx
je 0x410159
cmp dword [esi + 0x7c], ebx
jbe 0x410159
mov ebx, 0xffffff5c
lea edi, [esi + 0xa4]
sub ebx, esi
push ebp
lea esp, [esp]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebp, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebp + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebp + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
shr eax, 8
xor byte [edi], al
add edi, 1
lea ecx, [ebx + edi]
cmp ecx, dword [esi + 0x7c]
jb 0x4100d0
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, edi
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x410182
mov dword [esp + 8], 0xffffffff
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 8]
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
pop edi
mov dword [esi + 0x48], ebx
adc dword [esi + 0x100cc], ebx
mov dword [esi + 0x7c], ebx
pop ebx
pop ecx
ret
Function at 0x4130f0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4130f7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00413100