joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c566
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459394]
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.0043ab9c
and dword [ebp - 0x14], 0
cmp dword [0x45b280], 0
mov dword [ebp - 0x18], eax
jne 0x43c619
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43c6c1
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x454374
push ebx
call edi
test eax, eax
je 0x43c6c1
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45b280], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45b284], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45b288], eax
call edi
push eax
call esi
mov dword [0x45b290], eax
test eax, eax
je 0x43c619
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45b28c], eax
mov eax, dword [0x45b28c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x43c672
cmp dword [0x45b290], ecx
je 0x43c672
push eax
call esi
push dword [0x45b290]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43c672
test ebx, ebx
je 0x43c672
call edi
test eax, eax
je 0x43c669
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43c669
test byte [ebp - 8], 1
jne 0x43c672
or dword [ebp + 0x10], 0x200000
jmp 0x43c6a5
mov eax, dword [0x45b284]
cmp eax, dword [ebp - 0x18]
je 0x43c6a5
push eax
call esi
test eax, eax
je 0x43c6a5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43c6a5
mov eax, dword [0x45b288]
cmp eax, dword [ebp - 0x18]
je 0x43c6a5
push eax
call esi
test eax, eax
je 0x43c6a5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45b280]
call esi
test eax, eax
je 0x43c6c1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43c6c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434402
leave
ret
Function at 0x408151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x408160
pop dword [ebp - 0x20]
mov eax, 0x7e8a304f
add eax, 0x81b65111
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x4011d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x25ffcc0e
add ecx, 0xda008513
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x20]
mov edi, 0x67cb2dd
xor dword [ebp - 0x14], 0x1e932d7e
mov ebx, dword [edx]
add dword [ebp - 0x18], ecx
xor ebx, edi
sub dword [ebp - 0x18], 0xfaa11dc2
mov dword [esi], ebx
mov dword [ebp - 0x18], 0xc7634465
add esi, 0x85eca73e
add esi, 0x7a1358c6
add edx, 0xa76135b9
add edx, 0x589eca4b
loop 0x4081b0
add eax, 0x13757
mov ebx, eax
add eax, 0x2d729cfd
add eax, 0xd28d6308
mov ecx, 0x335ad760
add ecx, 0xcce528a0
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0xef65dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef65e6
pushal
call 0xef65ec
pop ebp
sub ebp, 0x10
sub ebp, 0xaf65dc
jmp 0xef6602
mov eax, 0xaf65dc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0xe07b47c3
xor byte [eax], dl
inc eax
dec ecx
jne 0xef6619
jmp 0xef662c
dec eax
push cs
dec eax
dec edx
inc ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402c00
pop dword [ebp - 0x24]
mov eax, 0x402c00
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x3b0a5e34
sub dword [ebp - 0x34], 0xecb818e9
mov dword [ebp - 0x30], 0xd89bad7
add dword [ebp - 0x30], 0x24a9916e
mov dword [ebp - 0x2c], 0xd4db4247
add dword [ebp - 0x2c], 0x777101e7
mov dword [ebp - 0x28], 0x1689b188
add dword [ebp - 0x28], 0xe9764e78
lea eax, [ebp - 0x34]
push eax
mov eax, 0x835b56cb
add eax, 0x7ce51999
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x9ceb2a6
add dword [ebp - 0x34], 0x6aa3b6b0
mov dword [ebp - 0x30], 0x11b8aa1e
sub dword [ebp - 0x30], 0xd04c48a9
mov dword [ebp - 0x2c], 0x739894a9
add dword [ebp - 0x2c], 0xefd6d7c3
mov dword [ebp - 0x28], 0xe39eff71
add dword [ebp - 0x28], 0x1c61008f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x39e8e
push 0
call eax
mov ecx, 0x298aada4
add ecx, 0xd675a73e
mov edi, eax
mov ebx, 0x580a8de0
sub ebx, 0x57c98de0
add ebx, dword [ebp - 0x24]
mov edx, 0xb811cfa8
add edx, 0xbfea80f6
add dword [ebp - 0x18], edi
mov esi, dword [ebx]
add esi, edx
xor dword [ebp - 4], eax
mov dword [edi], esi
add dword [ebp - 8], 0x8cb6c4d2
add edi, 0xb8041b2a
sub edi, 0xb8041b26
add ebx, 0xd99f6b31
add ebx, 0x266094d3
loop 0x402d18
add eax, 0x1465b
mov ebx, eax
add eax, 5
mov ecx, 0xae866103
add ecx, 0x51b99efd
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4026b0
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
test eax, eax
je 0x4026d4
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x4026fd
lea eax, [esi + edi - 8]
push str.System32
push eax
call fcn.0042b612
add esp, 8
test eax, eax
jne 0x4026fd
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret

Function at 0x402750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6b0e48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x1c
push esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], 0
call fcn.00407320
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
je 0x40288d
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push edi
mov dword [ebx + 0x18], eax
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.004026b0
test eax, eax
je 0x4027ca
mov eax, edi
push eax
mov edi, ebx
call fcn.00402640
add esp, 4
mov dword [ebp - 0x208], eax
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4027fd
lea edx, [ebp - 0x204]
push edx
mov edi, ebx
call fcn.00402640
mov esi, dword [ebp - 0x20c]
add esp, 4
add dword [ebp - 0x208], eax
push 0x43cf18
mov edi, ebx
call fcn.00402640
add dword [ebp - 0x208], eax
add esp, 4
mov eax, 0x200
lea esi, [ebp - 0x204]
call fcn.00402710
test eax, eax
je 0x40283d
mov eax, esi
mov esi, dword [ebp - 0x20c]
push eax
call fcn.00402640
add esp, 4
add dword [ebp - 0x208], eax
push str.MYSQL_HOME
call fcn.0041ccf8
add esp, 4
test eax, eax
je 0x402865
mov esi, dword [ebp - 0x20c]
push eax
mov edi, ebx
call fcn.00402640
add esp, 4
add dword [ebp - 0x208], eax
mov esi, dword [ebp - 0x20c]
push 0x43c88d
mov edi, ebx
call fcn.00402640
add eax, dword [ebp - 0x208]
xor ecx, ecx
add esp, 4
test eax, eax
setg cl
pop edi
lea eax, [ecx - 1]
and eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c16c
mov esp, ebp
pop ebp
ret
Function at 0x4038a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x6b0e48]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0c]
push eax
push 0x20019
push 0
push str.SOFTWAREMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039db
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0x504]
push edx
lea eax, [ebp - 0xa18]
push eax
mov eax, dword [ebp - 0xa0c]
xor esi, esi
push esi
lea ecx, [ebp - 0xa10]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
je 0x4039cc
inc esi
cmp eax, 0xea
je 0x40397e
test eax, eax
jne 0x4039cc
cmp dword [ebp - 0xa18], 1
jne 0x40397e
push eax
lea ecx, [ebp - 0x504]
push ecx
push 0x43c860
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0xa08]
push eax
call fcn.00408b20
lea ecx, [ebp - 0xa08]
push ecx
call fcn.0042954a
push eax
call fcn.0042bab3
add esp, 0x1c
lea edx, [ebp - 0xa14]
push edx
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov ecx, dword [ebp - 0xa0c]
push 0
lea edx, [ebp - 0xa10]
push edx
lea eax, [ebp - 0x104]
push eax
push esi
push ecx
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
jne 0x403930
mov edx, dword [ebp - 0xa0c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c16c
mov esp, ebp
pop ebp
ret

Function at 0x4039f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x409650
call fcn.0041d75c
add esp, 4
call fcn.0041d5ab
jmp fcn.004038a0

Function at 0x4065e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x6b0e48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40661f
lea eax, [ebp - 0xfc]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40661f
lea edi, [ebp - 0xfc]
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406642
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c16c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
and edx, 0xfffffbff
push edx
push esi
call fcn.00406420
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x40668b
call fcn.00409640
mov edi, dword [eax]
push 0
push esi
call fcn.00406120
add esp, 8
call fcn.00409640
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c16c
mov esp, ebp
pop ebp
ret
push 0x6b5570
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041c16c
mov esp, ebp
pop ebp
ret
Function at 0x407690
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
mov dword [ebp - 8], eax
inc ebp
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00407318
jns 0x4077f3
pop eax
test byte [eax - 0x8363], 0xff
Function at 0x4076d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
mov dword [ebp - 8], eax
inc ebp
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00407318
jns 0x4077f3
pop eax
test byte [eax - 0x8363], 0xff
Function at 0x4077a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00407318
xchg ebp, eax
jecxz 0x407867
cld
lea eax, [ebp - 0x84]
push eax
call fcn.00407328
push eax
push esi
push dword [ebp + 8]
call fcn.004072dd
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x407b11
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00407289
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x407888
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00407289
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x407855
dec eax
adc al, 0x8b
inc eax
or al, 3
dec ebp
adc byte [ebx], al
invalid
call fcn.00407318
dec edi
add byte [edx], ah
imul ecx, dword [ebx - 0x1fcc382], 0xff78bd89
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6bcd1c]
push ebx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40974c
call fcn.00409660
push 0x84
push 1
call fcn.0041f39b
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4096bd
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x6bcd1c]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov edi, dword [ebp - 4]
call fcn.004092e0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
sub eax, dword [0x5839c8]
push 0x152
push str.C:_buildbotwin32_packages_buildmariadb_5.5.31mysysmy_thr_init.c
mov edi, 0x6bcbc0
mov dword [ecx + 0x7c], eax
call fcn.00406960
mov eax, dword [0x6b6600]
mov edx, dword [ebp - 4]
inc eax
mov dword [edx + 0x5c], eax
inc dword [0x6b65f8]
mov dword [0x6b6600], eax
mov eax, dword [0x6b55e8]
add esp, 8
pop edi
test eax, eax
je 0x40973a
mov ecx, dword [0x6bcbd8]
test ecx, ecx
je 0x40973a
mov eax, dword [eax + 0x78]
push ecx
call eax
add esp, 4
push 0x6bcbc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x68], 1
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Allocate thread local storage

Disassembly:
cmp byte [0x6b65fc], 0
jne 0x4097c0
mov byte [0x6b65fc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x6bcd1c], eax
mov eax, ecx
test eax, eax
je 0x4097a3
push eax
push str.Cant_initialize_threads:_error__d_n
call fcn.0041b682
add eax, 0x40
push eax
call fcn.0041b576
add esp, 0xc
mov al, 1
ret
call fcn.00409180
call fcn.00409680
test al, al
jne 0x4097a0
call fcn.0040d0a0
mov dword [0x6bb648], eax
call fcn.00408e30
xor al, al
ret

Function at 0x40cc80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40cc8e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.0040c960
add esp, 4
push 0
lea ecx, [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ccce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x40cc8a
cmp eax, 0x6d
je 0x40cc8a
push eax
call fcn.004137b0
add esp, 4
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x40cce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
test edi, edi
jne 0x40ccf7
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0040c980
test al, 8
je 0x40cd28
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
lea edx, [ebp - 0x14]
push esi
call fcn.0040c960
add esp, 4
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
jne 0x40cd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004137b0
add esp, 4
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x411f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6b0e48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx + 0x64]
push edx
push eax
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
push ebx
call eax
mov ecx, dword [ebp - 0x34]
push eax
push ecx
push ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
lea edx, [ebp - 0x2c]
push edx
call eax
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x2c]
push ecx
call edx
add esp, 0x20
test eax, eax
jle 0x41202f
jmp 0x411fe0
mov ecx, dword [edi]
mov edx, ecx
and edx, 0x3f
add edx, dword [esi]
mov ebx, eax
sar ebx, 8
imul edx, ebx
mov ebx, ecx
shl ebx, 8
add edx, ebx
xor edx, ecx
mov dword [edi], edx
add dword [esi], 3
mov ecx, dword [edi]
mov ebx, ecx
and ebx, 0x3f
add ebx, dword [esi]
movzx eax, al
imul ebx, eax
mov edx, ecx
shl edx, 8
add ebx, edx
xor ebx, ecx
mov ecx, dword [ebp - 0x30]
mov dword [edi], ebx
add dword [esi], 3
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x2c]
push eax
call edx
add esp, 4
test eax, eax
jg 0x411fe0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041c16c
mov esp, ebp
pop ebp
ret

Function at 0x41c16c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6b0e48]
jne 0x41c176
repz ret
jmp fcn.0042301b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x422928
call fcn.0041c649
mov dword [eax], esi
call fcn.0041c636
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041d7d5
mov eax, esi
jmp 0x42297d
test dword [ebp + 0xc], 0xfffffff9
jne 0x42290e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x422955
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c65c
pop ecx
call fcn.0041c636
mov eax, dword [eax]
jmp 0x42297d
test al, 0x10
jne 0x42297b
test al, 1
je 0x42297b
test byte [ebp + 0xc], 2
je 0x42297b
call fcn.0041c649
mov dword [eax], 5
call fcn.0041c636
mov dword [eax], 0xd
jmp 0x42294c
xor eax, eax
pop esi
pop ebp
ret